Just starting out and trying to work through some of the learning curve struggles, but this one has me stumped.
I'm trying to set a default theme for my grids inside a resource dictionary, I've tried the app.xaml file but also without success.
Here's my code:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
<!-- Resource dictionary entries should be defined here. -->
<Style TargetType="{x:Type telerik:RadGridView}">
<Style.BasedOn>
<Style TargetType="{x:Type telerik:RadGridView}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type telerik:RadGridView}">
<AdornerDecorator>
<telerik:Theming.Theme>
<telerik:TelerikTheme/>
</telerik:Theming.Theme>
</AdornerDecorator>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Style.BasedOn>
</Style>
</ResourceDictionary>
I started with an edit template and stripped out everything else. When I run my application the grid is blank, actually it is blank in the designer as well as the Properties window. If I add a x:Key value, the grid will reappear. So it is applying my style in some fashion. What am I missing?
Thanks,
-Sid Meyers.