Skip to content

IThemeManager

Mark Kromis edited this page Oct 21, 2019 · 1 revision

What does it do

Initializes theme and manages values for them.

Screenshot - Ribbon Demo

Supported Platforms

  • WPF (Framework)

Modules Used

Associated services

  • ITheme

Main Usage

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.

Clone this wiki locally