Hi, I am using the implicit style "VisualStudio2013" and I want to change the appearance of an entire window based upon whatever preset I've loaded.
For some reason, when I load the presets, only the RadButtons and the RadPropertyGrid change their appearance. Everything else (RadGridView, RadTreeListView, RadMenu) just keep the standard theme.
What extra steps do I need to take to fix this?
Many thanks,
M.Young
Class
MainWindow
Private
Sub
RadButton_Click(sender
As
Object
, e
As
RoutedEventArgs) Telerik.Windows.Controls.VisualStudio2013Palette.LoadPreset(Telerik.Windows.Controls.VisualStudio2013Palette.ColorVariation.Light)
End
Sub
Private
Sub
RadButton_Click_1(sender
As
Object
, e
As
RoutedEventArgs) Telerik.Windows.Controls.VisualStudio2013Palette.LoadPreset(Telerik.Windows.Controls.VisualStudio2013Palette.ColorVariation.Dark)<
End
Sub
Private
Sub
RadButton_Click_2(sender
As
Object
, e
As
RoutedEventArgs) Telerik.Windows.Controls.VisualStudio2013Palette.LoadPreset(Telerik.Windows.Controls.VisualStudio2013Palette.ColorVariation.Blue)
End
Sub
End
Class
<
Window
x:Class
=
"MainWindow"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikcontrols="clr-namespace:Telerik.Windows;assembly=Telerik.Windows.Controls"
Title="MainWindow" Height="350" Width="857.951">
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"13*"
></
RowDefinition
>
<
RowDefinition
Height
=
"147*"
></
RowDefinition
>
</
Grid.RowDefinitions
>
<
telerik:RadMenu
>
<
telerik:RadMenu.Items
>
<
telerik:RadMenuItem
Header
=
"Test"
>
<
telerik:RadMenuItem
Header
=
"Test"
>
</
telerik:RadMenuItem
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Header
=
"Test"
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Header
=
"Test"
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Header
=
"Test"
>
</
telerik:RadMenuItem
>
</
telerik:RadMenu.Items
>
</
telerik:RadMenu
>
<
StackPanel
Orientation
=
"Horizontal"
Grid.Row
=
"1"
Margin
=
"10"
>
<
telerik:RadButton
Width
=
"100"
Content
=
"Light"
Click
=
"RadButton_Click"
>
</
telerik:RadButton
>
<
telerik:RadButton
Width
=
"100"
Content
=
"Dark"
Click
=
"RadButton_Click_1"
></
telerik:RadButton
>
<
telerik:RadButton
Width
=
"100"
Content
=
"Blue"
Click
=
"RadButton_Click_2"
></
telerik:RadButton
>
<
telerik:RadPropertyGrid
Width
=
"150"
/>
<
telerik:RadGridView
Width
=
"150"
/>
<
telerik:RadTreeListView
Width
=
"150"
/>
</
StackPanel
>
</
Grid
>
</
Window
>