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

Backstage dosen't display when theming RadRibbonView via windows resources

1 Answer 138 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 10 Nov 2016, 03:42 PM

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

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 15 Nov 2016, 12:18 PM
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!
Tags
RibbonView and RibbonWindow
Asked by
Michael
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or