Change Ribbon Theme from Backstage Header issue
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
Hi George,
Thank you for contacting Syncfusion support.
In Ribbon control, to close the BackStage we have a method namely 'HideBackStage()'. We have prepared the sample in which ListBox is added to BackStageTabItem. On selecting the theme in ListBox the corresponding theme is set in 'SelectionChanged' event and the BackStage is closed using 'HideBackSatge()' method. If your requirement is different from this sample please provide more information regarding your requirement.
Please download the sample from the following location.
Sample link: RibbonSample.zip
Please let us know if you need further assistance.
Regards,
Mariappan S.
Hi,
If set the theme to "Blend" in the shared sample its not showing "File" Backstage tab item. is there any work around for this ?
Output:
Thanks,
Govind
- 3 Replies
- 4 Participants
-
GS George Sterg
- Mar 9, 2015 07:19 PM UTC
- Jul 10, 2017 12:41 PM UTC