C# Class Buddy.UI.Core.Themes.ThemeManager

Datei anzeigen Open project: BosslandGmbH/Buddy.UI

Public Methods

Method Description
Initialize ( ) : void

Initializes the Theme Manager, reloading themes and accents, and applying custom styling.

LoadResources ( string key, System.Windows.ResourceDictionary resourceDictionary ) : void

Loads the specified resource dictionary using the specified key into the application's current merged dictionaries.

TryGetAccent ( string name ) : Maybe

Gets an accent color with the specified name, if it exists.

TryGetTheme ( string name ) : Maybe

Gets a theme with the specified name, if it exists.

Private Methods

Method Description
ReloadAccents ( ) : void
ReloadThemes ( ) : void

Method Details

Initialize() public static method

Initializes the Theme Manager, reloading themes and accents, and applying custom styling.
public static Initialize ( ) : void
return void

LoadResources() public static method

Loads the specified resource dictionary using the specified key into the application's current merged dictionaries.
public static LoadResources ( string key, System.Windows.ResourceDictionary resourceDictionary ) : void
key string The key.
resourceDictionary System.Windows.ResourceDictionary The resource dictionary.
return void

TryGetAccent() public static method

Gets an accent color with the specified name, if it exists.
public static TryGetAccent ( string name ) : Maybe
name string The name.
return Maybe

TryGetTheme() public static method

Gets a theme with the specified name, if it exists.
public static TryGetTheme ( string name ) : Maybe
name string The name.
return Maybe