This is a migrated thread and some comments may be shown as answers.

Compile Errors with 2012.2.607.40

7 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 14 Jun 2012, 03:58 PM
I upgraded to 2012.2.607.40 today and rebuilt my project (which built successfully before the upgrade) and received three instances of the following error:

error MC3064: Only public or internal classes can be used within markup. 'Style' type is not public or internal.

Below is the xaml that caused the errors.

<telerik:GridViewCheckBoxColumn.HeaderCellStyle>       
    <Style TargetType="{x:Type telerik:GridViewHeaderCell}">
        <Style.Setters>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderCell}">
                        <telerik:GridViewHeaderCell FilteringUIVisibility="Collapsed">
                            <StackPanel HorizontalAlignment="Center"
                                        Margin="5" >
                                <ContentPresenter   HorizontalAlignment="Center"
                                                    VerticalAlignment="Center"/>
                     
                                <CheckBox   x:Name="CheckBoxHeaderTemplate"
                                            HorizontalAlignment="Center"
                                            Margin="0,5,0,0"
                                            Checked="CheckBoxHeader_Checked"
                                            Unchecked="CheckBoxHeader_Checked"/>                       
                            </StackPanel>
                        </telerik:GridViewHeaderCell>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style.Setters>
    </Style>
</telerik:GridViewCheckBoxColumn.HeaderCellStyle>  
<telerik:GridViewDataColumn.HeaderCellStyle>
    <Style  TargetType="{x:Type telerik:GridViewHeaderCell}">
            <Style.Setters>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderCell}">
                            <ContentPresenter HorizontalAlignment="Stretch"/>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style.Setters>
        </Style>
</telerik:GridViewDataColumn.HeaderCellStyle>

<telerik:GridViewCheckBoxColumn.CellStyle>
    <Style TargetType="telerik:GridViewCell">
        <Setter Property="HorizontalContentAlignment" Value="Center" />
    </Style>
</telerik:GridViewCheckBoxColumn.CellStyle>

Any help would be greatly appreciated.
Thanks in advance,
Steve












7 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 15 Jun 2012, 05:41 AM
Hello,

 I've replied to your other thread

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
DSamani
Top achievements
Rank 1
answered on 12 Jul 2012, 07:58 PM
I'm having the same issue setting the RowStyle in xaml. Has this been resolved?

Only public or internal classes can be used within markup. 'Style' type is not public or internal.

                     <Rad:RadGridView.RowStyle>
                        <Style TargetType="{x:Type Rad:GridViewRow}">
                           <Setter Property="Background"
                                   Value="{Binding Severity.Color}" />
                        </Style>
                     </Rad:RadGridView.RowStyle>

complied fine prior to upgrade...
0
Steve
Top achievements
Rank 1
answered on 12 Jul 2012, 08:00 PM
I'm not sure, I'll check it today and get back to you.
0
Dimitrina
Telerik team
answered on 13 Jul 2012, 05:19 AM
Hello,

 We found out that Telerik.Windows.Document.FormatProviders.OpenXml binary is causing the compilation error. Please remove the reference and you will be able to build the project.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Steve
Top achievements
Rank 1
answered on 13 Jul 2012, 05:48 AM
Thanks for getting to this! I can now uncomment the offending code!
0
DSamani
Top achievements
Rank 1
answered on 13 Jul 2012, 02:21 PM
I don't understand how that is the solution.  I need Telerik.Windows.Document.FormatProviders.OpenXml

Is there no other workaround for the sample I posted?
0
Dimitrina
Telerik team
answered on 17 Jul 2012, 11:25 AM
Hello,

 I have a good news. The problem was already resolved and the fix is available in the latest internal build uploaded yesterday.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Vlad
Telerik team
DSamani
Top achievements
Rank 1
Steve
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or