Compile Errors with 2012.2.607.40

8 posts, 0 answers
  1. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 14 Jun 2012 Link to this post

    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












  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 15 Jun 2012 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. DSamani
    DSamani avatar
    15 posts
    Member since:
    Dec 2009

    Posted 12 Jul 2012 Link to this post

    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...
  5. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 12 Jul 2012 Link to this post

    I'm not sure, I'll check it today and get back to you.
  6. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 13 Jul 2012 Link to this post

    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 >>

  7. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 13 Jul 2012 Link to this post

    Thanks for getting to this! I can now uncomment the offending code!
  8. DSamani
    DSamani avatar
    15 posts
    Member since:
    Dec 2009

    Posted 13 Jul 2012 Link to this post

    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?
  9. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Jul 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready