Implicit Theme not being applied to radMenu

3 posts, 0 answers
  1. Miles
    Miles avatar
    2 posts
    Member since:
    Jan 2016

    Posted 13 Jan Link to this post

    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. Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 15 Jan Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hazy
    Hazy avatar
    3 posts
    Member since:
    Nov 2015

    Posted 26 Mar Link to this post

    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"

     

     

Back to Top