-
Notifications
You must be signed in to change notification settings - Fork 5
IThemeManager
Mark Kromis edited this page Oct 21, 2019
·
1 revision
Initializes theme and manages values for them.
- WPF (Framework)
- ITheme
This sets the blue theme by default, or user saved one thru settings. The ITheme also has the ability once gotten from IMesThemeManager.Themes to add your resource dictionaries to the theme before applying. This can be done in the setup class.
When calling this from the MainViewModel, resolve IMesThemeManager to interface with UI. This can be done via direct resolve or constructor injection.
var manager = Mvx.IoCProvider.Resolve<IMesThemeManager>();
See MinoriDemo.RibbonWpf for an example.