Hi,
In my app, I'm using the Telerik RadDataGrid as well as standard built-in controls such as ListView. I like the styles and colors provided by Telerik and I'd like to use them in my other ListViews. For example, I'd like to use the TelerikGridAlternateRowBackgroundBrush brush.
I have defined my brush as follows:
<SolidColorBrush x:Key="GridRowAltBrush" Color="{ThemeResource TelerikGridAlternateRowBackgroundBrush}"/>
... and I also included the Telerik's theme resources in App.xaml as described here: http://docs.telerik.com/devtools/universal-windows-platform/common/teleriknamedbrushes
<Application.Resources>
<ResourceDictionary>
<telerik:UserThemeResources x:Key="themeResourceInitializer"/>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///Telerik.UI.Xaml.Grid.UWP/Themes/ThemeResourcesDark.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
<ResourceDictionary x:Key="Light">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="ms-appx:///Telerik.UI.Xaml.Grid.UWP/Themes/ThemeResourcesLight.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Common/CustomStyles.xaml"/>
<ResourceDictionary Source="Common/ControlTemplates.xaml"/>
<ResourceDictionary Source="Common/ThemeDictionaries.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
I have two problems with the above code:
1. Visual Studio complains: "An error occurred while finding the resource dictionary ms-appx:///Telerik.UI.Xaml.Grid.UWP/Themes/ThemeResourcesDark.xaml" and "An error occurred while finding the resource dictionary ms-appx:///Telerik.UI.Xaml.Grid.UWP/Themes/ThemeResourcesLight.xaml"
2. My GridRowAltBrush brush is always #00000001 no matter what Telerik's key I use.
What am I doing wrong? How could I use the Telerik's styles?
Thanks,
Leszek