Theming Error after updating to 2013.2.902.45

2 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 09 Sep 2013 Link to this post

    Hi, 

    after updateing to the most current internal build I get the error
    ArgumentException: 'Windows8' is not a valid value for the 'Telerik.Windows.Controls.StyleManager.Theme' property on a Setter.

    The File producing this looks like this (and worked before):


    <ResourceDictionary
        xmlns:XTelerik="clr-namespace:XControlsWPF.XTelerik;assembly=XControlsWPF">
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/XControlsWPF;component/Styles.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/XDiagramWPF;component/Assets/XDiagramStyles.xaml"/>
            <!--       
            <telerik:Windows8ResourceDictionary/>
            -->
        </ResourceDictionary.MergedDictionaries>
        <telerik:Windows8Colors x:Key="Windows8Colors" />
        <SolidColorBrush x:Key="AccentBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.AccentColor}" />
        <SolidColorBrush x:Key="BasicBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.BasicColor}" />
        <SolidColorBrush x:Key="StrongBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.StrongColor}" />
        <SolidColorBrush x:Key="MainBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.MainColor}" />
        <SolidColorBrush x:Key="MarkerBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.MarkerColor}" />
        <SolidColorBrush x:Key="ValidationBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.ValidationColor}" />
     
        <Style TargetType="{x:Type XTelerik:XCheckButton}">
            <Setter Property="telerik:StyleManager.Theme" Value="Windows8" />
            <Setter Property="Padding" Value="6,3"/>
        </Style>
        <Style TargetType="{x:Type XTelerik:XButton}">
            <Setter Property="telerik:StyleManager.Theme" Value="Windows8" />
            <Setter Property="Padding" Value="6,3"/>
        </Style>
        <Style TargetType="{x:Type telerik:RadToggleButton}">
            <Setter Property="telerik:StyleManager.Theme" Value="Windows8" />
            <Setter Property="Padding" Value="6,3"/>
        </Style>
        <Style TargetType="{x:Type Button}">
            <Setter Property="telerik:StyleManager.Theme" Value="Windows8" />
            <Setter Property="Padding" Value="6,3"/>
        </Style>
        <Style TargetType="{x:Type telerik:RadButton}">
            <Setter Property="telerik:StyleManager.Theme" Value="Windows8" />
            <Setter Property="Padding" Value="6,3"/>
        </Style>
     
        <Style TargetType="{x:Type telerik:RadBusyIndicator}" BasedOn="{StaticResource DarkBusyBackgroundStyle}" />
     
        <Style TargetType="TextBox">
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="Validation.ErrorTemplate" Value="{StaticResource validationTemplate}" />
        </Style>
        <Style TargetType="Grid">
            <Setter Property="Validation.ErrorTemplate" Value="{StaticResource validationTemplate}" />
        </Style>
    </ResourceDictionary>

    Manfred
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 Sep 2013 Link to this post

    Hi Manfred,

    I have tried to reproduce this error but without much success.  Could you please open a support ticket and send us there a sample project reproducing the issue?

    Thanks in advance.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top