DevExpress WPF Controls include the following behaviors that display a theme gallery in Bars and Ribbon controls:
- RibbonGalleryItemThemeSelectorBehavior
- BarSubItemThemeSelectorBehavior
- BarSplitItemThemeSelectorBehavior
This example displays these theme selectors in the Ribbon.
You can use the Theme.ShowInThemeSelector property to hide a theme/theme category from behaviors.
In this example, the Standard and Metropolis theme categories are hidden.
Use can save the application's theme to the configuration file and restore it on the next application run.
To save an applied theme, use the static ApplicationThemeHelper.SaveApplicationThemeName method to save the theme name specified in the static ApplicationThemeHelper.ApplicationThemeName property.
Call the static ApplicationThemeHelper.UpdateApplicationThemeName method to retrieve the theme name from the configuration file.
- MainWindow.xaml (VB: MainWindow.xaml)
- App.xaml.cs (VB: App.xaml.vb)
- RibbonGalleryItemThemeSelectorBehavior
- BarSubItemThemeSelectorBehavior
- BarSplitItemThemeSelectorBehavior
- RibbonGalleryItemThemePaletteSelectorBehavior
- Behaviors
- WPF MVVM Behaviors - Display a Theme Selector Based on a Hamburger Sub Menu
- WPF MVVM Behaviors - Display a Theme Selector Based on a GalleryControl
(you will be redirected to DevExpress.com to submit your response)