I have created a custom theme but when applying it to the applicaiton that we are currently developing it throws an error only visible within the Firefox error console.
I was able to narrow it down with by creating a sample project, and it seems that the error is only ever thrown when the resource dictionary in the App.xaml requires a key.
This dosn't work~
But this does~
Thing is within our main app, there are other items within the application recources so no matter what the resource dictionary for the custom theme requires a key. So my question is what other changes do I have to make to apply the custom theme if the resource dictionary requires a key.
Also this custom theme is being applied application wide within the App.xaml.cs using:
Thanks in advance!
Tom.
Error: Unhandled Error in Silverlight Application
Code: 2272
Category: ParserError
Message: Cannot find a Resource with the Name/Key BtnChrm
File:
Line: 81
Position: 61
Source File: http://localhost:4498/CustomThemeTestTestPage.aspx
Line: 56
I was able to narrow it down with by creating a sample project, and it seems that the error is only ever thrown when the resource dictionary in the App.xaml requires a key.
This dosn't work~
<
Application.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary
x:Key
=
"test"
Source
=
"/CustomTheme;component/Themes/CustomThemeGeneric.xaml"
/>
</
ResourceDictionary
>
</
Application.Resources
>
<
Application.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"/CustomTheme;component/Themes/CustomThemeGeneric.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
Application.Resources
>
Thing is within our main app, there are other items within the application recources so no matter what the resource dictionary for the custom theme requires a key. So my question is what other changes do I have to make to apply the custom theme if the resource dictionary requires a key.
Also this custom theme is being applied application wide within the App.xaml.cs using:
Telerik.Windows.Controls.Theme appTheme =
new
CustomTheme.CustomTheme();
Telerik.Windows.Controls.StyleManager.ApplicationTheme = appTheme;
Thanks in advance!
Tom.