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

Afficher le fichier Open project: BosslandGmbH/Buddy.UI

Méthodes publiques

Méthode 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

Méthode Description
ReloadAccents ( ) : void
ReloadThemes ( ) : void

Method Details

Initialize() public static méthode

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

LoadResources() public static méthode

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.
Résultat void

TryGetAccent() public static méthode

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

TryGetTheme() public static méthode

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