The style for my RadWindows is not being overriden from the default theme. I don't have the same issue with other telerik controls like RadButton, the style gets set fine for them. Why is this happening? How can I set a RadWindow style?
MyWindow.xaml
<
telerik:RadWindow
x:Class
=
"MyWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Header
=
"My Window"
<Grid>
// window content
<
telerik:RadButton
Content
=
"OK"
/>
<
telerik:RadButton
Content
=
"Cancel"
/>
</
StackPanel
>
</
Grid
>
</
telerik:RadWindow
>
My App.Xaml file contains MergedDictionaries
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"pack://application:,,,/Telerik/RadButton.xaml"
/>
<
ResourceDictionary
Source
=
"pack://application:,,,/Telerik/RadWindow.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
Here are the individual xaml files
RadWindow.xaml
<
ResourceDictionary
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
Style
TargetType
=
"{x:Type telerik:RadWindow}"
>
<
Setter
Property
=
"Background"
Value
=
"Green"
/>
</
Style
>
</
ResourceDictionary
>
RadButton.xaml
<
ResourceDictionary
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
Style
TargetType
=
"{x:Type telerik:RadButton}"
>
<
Setter
Property
=
"Background"
Value
=
"Blue"
/>
</
Style
>
</
ResourceDictionary
>