/wpf-mvvm-behaviors-gallery-based-theme-selector

The GalleryThemeSelectorBehavior automatically populates the associated GalleryControl with all available themes and allows you to choose the application's theme.

Primary LanguageC#OtherNOASSERTION

WPF MVVM Behaviors - Display a Theme Selector Based on a GalleryControl

The GalleryThemeSelectorBehavior populates the associated GalleryControl with all available themes and allows you to choose the application's theme.

GalleryThemeSelectorBehavior_HZYtESplP2

Persist Theme Selection between Application Runs

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.

Hide a Theme from a Theme Selector

You can use the behavior's inherited Theme.ShowInThemeSelector property to specify whether a theme or a theme category is visible in the GalleryThemeSelectorBehavior.

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)