Backstage dosen't display when theming RadRibbonView via windows resources

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    Nov 2016

    Posted 10 Nov 2016 Link to this post

    Hi,

     

    When I apply the RibbonView XAML as a windows level resource ribbon view backstage does not show. It only works if I move the resources to an application resource.

    I need window level theming for my application is this supported with Telerik WPF ribbon control or am I doing something wrong ?

     

    Below is the XAML:-

    <telerik:RadRibbonWindow x:Class="WpfApplication1.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
            xmlns:local="clr-namespace:WpfApplication1"
            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
            mc:Ignorable="d"
            Title="MainWindow" Height="350" Width="525">
        
        <telerik:RadRibbonWindow.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Input.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" />
                    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.RibbonView.xaml" />
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </telerik:RadRibbonWindow.Resources>
        
        <Grid>
            <telerik:RadRibbonView Grid.Row="0" x:Name="Ribbon" ApplicationName="Theme test" ApplicationButtonContent="System" >
                <telerik:RadRibbonView.Backstage>
                    <telerik:RadRibbonBackstage x:Name="Backstage"  >
                        <telerik:RadRibbonBackstageItem Header="Overview" IsSelectable="true" IsSelected="True" />
                        <telerik:RadRibbonBackstageItem Header="System Configuration" IsSelectable="false" />
                        <telerik:RadRibbonBackstageItem Header="Setup Display" IsSelectable="false" />
                    </telerik:RadRibbonBackstage>
                </telerik:RadRibbonView.Backstage>
            </telerik:RadRibbonView>
        </Grid>
    </telerik:RadRibbonWindow>

    Regards

  2. Evgenia
    Admin
    Evgenia avatar
    1435 posts

    Posted 15 Nov 2016 Link to this post

    Hello Michael,

    By saying that RadRibbonView's Backstage doesn't appear I'm assuming that you are talking about runtime visualization and not design-time. RadRibbonBackstage is hosted inside an Adorner which have some limitations. For instance when you try to apply an Implicit style to an element located in an Adorner, if you define the style inside the Window.Resources the Adorner can not access the style and it will not be applied. That's the reason why to have a working implicit style to an element of the Adorner you will need to use the App.xaml or so called global resources.

    Regards,
    Evgenia
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top