C# Класс Orchestra.ThemeHelper

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateAccentColorResourceDictionary ( Color color ) : System.Windows.ResourceDictionary

Creates the accent color resource dictionary and automatically adds it to the application resources.

EnsureApplicationThemes ( Assembly assembly, bool createStyleForwarders = false ) : void

Ensures the application themes by using the assembly and the /Themes/Generic.xaml.

EnsureApplicationThemes ( string resourceDictionaryUri, bool createStyleForwarders = false ) : void

Ensures the application themes.

GetAccentColor ( AccentColorStyle colorStyle = AccentColorStyle.AccentColor ) : Color
GetAccentColorBrush ( ) : SolidColorBrush
GetAccentColorBrush ( AccentColorStyle colorStyle ) : SolidColorBrush
GetAccentColorResourceDictionary ( ) : System.Windows.ResourceDictionary

Gets the accent color resource dictionary if it has been created.

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

Метод Описание
EnsureOrchestraTheme ( bool createStyleForwarders ) : void

Ensures the orchestra theme.

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

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

Creates the accent color resource dictionary and automatically adds it to the application resources.
public static CreateAccentColorResourceDictionary ( Color color ) : System.Windows.ResourceDictionary
color Color
Результат System.Windows.ResourceDictionary

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

Ensures the application themes by using the assembly and the /Themes/Generic.xaml.
The is null.
public static EnsureApplicationThemes ( Assembly assembly, bool createStyleForwarders = false ) : void
assembly System.Reflection.Assembly The assembly.
createStyleForwarders bool if set to true, style forwarders will be created.
Результат void

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

Ensures the application themes.
The is null or whitespace.
public static EnsureApplicationThemes ( string resourceDictionaryUri, bool createStyleForwarders = false ) : void
resourceDictionaryUri string The resource dictionary.
createStyleForwarders bool if set to true, style forwarders will be created.
Результат void

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

public static GetAccentColor ( AccentColorStyle colorStyle = AccentColorStyle.AccentColor ) : Color
colorStyle AccentColorStyle
Результат Color

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

public static GetAccentColorBrush ( ) : SolidColorBrush
Результат System.Windows.Media.SolidColorBrush

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

public static GetAccentColorBrush ( AccentColorStyle colorStyle ) : SolidColorBrush
colorStyle AccentColorStyle
Результат System.Windows.Media.SolidColorBrush

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

Gets the accent color resource dictionary if it has been created.
public static GetAccentColorResourceDictionary ( ) : System.Windows.ResourceDictionary
Результат System.Windows.ResourceDictionary