This is a migrated thread and some comments may be shown as answers.

Implicit Theme not being applied to radMenu

2 Answers 164 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Miles
Top achievements
Rank 1
Miles asked on 13 Jan 2016, 02:37 PM

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: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>

2 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 15 Jan 2016, 10:52 AM
Hi Miles,

We checked the provided code-snippet and it seems everything is working as expected on our side. Please, check the attached video that demonstrates that and let us know if we didn't miss something?

Also, please try to isolate the observed by you issue in a sample and send it to us - thus we could be able to continue our investigation?

We are looking forward to hearing from you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Hazy
Top achievements
Rank 1
answered on 26 Mar 2016, 12:26 PM

Hi miriyo,

After having the same issue, I realized that I was missing the following Resource Dictionary source

"/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"

 

 

Tags
Menu
Asked by
Miles
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Hazy
Top achievements
Rank 1
Share this question
or