Skip to content

DevExpress-Examples/wpf-mvvm-behaviors-barItems-based-theme-selectors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF MVVM Behaviors - Display Theme Selectors Based on BarItems and Hide Themes from List

DevExpress WPF Controls include the following behaviors that display a theme gallery in Bars and Ribbon controls:

This example displays these theme selectors in the Ribbon.

Display Theme Selectors Based on BarItems and Hide Themes from List

Hide Themes from Theme Selector

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.

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.

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)