C# Класс Buddy.UI.Core.Themes.ThemeManager

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ReloadAccents ( ) : void
ReloadThemes ( ) : void

Описание методов

Initialize() публичный статический Метод

Initializes the Theme Manager, reloading themes and accents, and applying custom styling.
public static Initialize ( ) : void
Результат void

LoadResources() публичный статический Метод

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.
Результат void

TryGetAccent() публичный статический Метод

Gets an accent color with the specified name, if it exists.
public static TryGetAccent ( string name ) : Maybe
name string The name.
Результат Maybe

TryGetTheme() публичный статический Метод

Gets a theme with the specified name, if it exists.
public static TryGetTheme ( string name ) : Maybe
name string The name.
Результат Maybe