C# 클래스 Orchestra.ThemeHelper

파일 보기 프로젝트 열기: WildGums/Orchestra 1 사용 예제들

공개 메소드들

메소드 설명
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