I using the backstage to change the theme of the ribbon. with a BackstageTabItem. Inside the Item i have a listbox with an ItemTemplate of RibbonButtons. In the SelectedItem property i have a method that changes the RibbonTheme (currently using Office2010Black and Office2010Blue. My ribbon window VisualStyle="Office2013". When the theme is selected the Backstage arrow in not closed. I made i work around with this code:
var vm = DataContext as EFOStartUpViewModel;
SkinStorage.SetVisualStyle(this.Ribbon, vm.RibbonTheme);
and use it in the Ribbon_BackStageClosed event. Is there a better way to assign through binding the ribbon theme? The above code is not working:
syncfusion:SkinStorage.VisualStyle="{Binding
RibbonTheme}"
Sample code:
<syncfusion:Backstage x:Name="RibbonBackStage">
<syncfusion:BackstageTabItem Header="Themes">
<Grid>
<ListBox ItemsSource="{Binding ThemesList}"
ItemTemplate="{DynamicResource ThemeButtonTemplate}"
SelectedItem="{Binding SelectedTheme}">
</ListBox>
</syncfusion:BackstageTabItem>
</syncfusion:Backstage>
</syncfusion:Ribbon.BackStage>
I can provide a sample if needed.
Thank you
George