C# Class Catel.ThemeHelper

Theme helper to ensure themes are loaded upon usage.
Show file Open project: Catel/Catel

Public Methods

Method Description
EnsureCatelMvvmThemeIsLoaded ( ) : void

Ensures that the Catel.MVVM theme is loaded.

EnsureThemeIsLoaded ( Uri resourceUri ) : void

Ensures that the specified theme is loaded.

EnsureThemeIsLoaded ( Uri resourceUri, Func predicate ) : void

Ensures that the specified theme is loaded.

Private Methods

Method Description
ContainsDictionary ( System.Windows.ResourceDictionary resourceDictionary, Uri resourceUri ) : bool

Method Details

EnsureCatelMvvmThemeIsLoaded() public static method

Ensures that the Catel.MVVM theme is loaded.
public static EnsureCatelMvvmThemeIsLoaded ( ) : void
return void

EnsureThemeIsLoaded() public static method

Ensures that the specified theme is loaded.
public static EnsureThemeIsLoaded ( Uri resourceUri ) : void
resourceUri System.Uri The resource URI.
return void

EnsureThemeIsLoaded() public static method

Ensures that the specified theme is loaded.
public static EnsureThemeIsLoaded ( Uri resourceUri, Func predicate ) : void
resourceUri System.Uri The resource URI.
predicate Func The predicate.
return void