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

Theming Error after updating to 2013.2.902.45

1 Answer 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 09 Sep 2013, 10:59 AM
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

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Sep 2013, 07:53 AM
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 >>
Tags
General Discussions
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or