Skip to content

DevExpress-Examples/winforms-save-restore-active-skin-palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Skins - Save/restore the active skin and palette between application sessions

The Windows Forms Application Settings feature allows you to create, store, and maintain user preferences on client computers. You can use this feature to save the active skin and palette and restore these settings when your application restarts.

  • Double-click the Settings.settings file in the Visual Studio Solution Explorer.
  • Create two entries of the String type.
  • Set the scope of both entries to "User".
  • When your application is about to close, save values of UserLookAndFeel.Default.SkinName and UserLookAndFeel.Default.ActiveSvgPaletteName properties to Application Settings.
  • When your application starts, read saved settings and pass them to the UserLookAndFeel.SetSkinStyle method as parameters.

Files to Review

See Also