The GalleryThemeSelectorBehavior populates the associated GalleryControl with all available themes and allows you to choose the application's theme.
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.
You can use the behavior's inherited Theme.ShowInThemeSelector property to specify whether a theme or a theme category is visible in the GalleryThemeSelectorBehavior.
- MainWindow.xaml (VB: MainWindow.xaml)
- App.xaml.cs (VB: App.xaml.vb)
- WPF MVVM Behaviors - Display Theme Selectors Based on BarItems and Hide Themes from List
- WPF MVVM Behaviors - Display a Theme Selector Based on a Hamburger Sub Menu
(you will be redirected to DevExpress.com to submit your response)