C# Class MetroRadiance.ThemeService

Inheritance: MetroRadiance.Core.Notificator
Exibir arquivo Open project: Grabacr07/MetroRadiance

Public Methods

Method Description
ChangeAccent ( Accent accent ) : void
ChangeAccent ( System.Windows.ResourceDictionary accent ) : void
ChangeTheme ( Theme theme ) : void
Initialize ( Application app, Theme theme, Accent accent ) : void
Initialize ( Application app, Theme theme, System.Windows.ResourceDictionary accent ) : void
Register ( System.Windows.ResourceDictionary rd ) : IDisposable

Protected Methods

Method Description
RaisePropertyChanged ( [ propertyName = null ) : void

Private Methods

Method Description
ChangeAccentCore ( System.Windows.ResourceDictionary dic ) : void
CheckAccentResourceUri ( Uri uri ) : bool

指定した Uri がアクセント カラーのリソースを指す URI かどうかをチェックします。

CheckThemeResourceUri ( Uri uri ) : bool

指定した Uri がテーマのリソースを指す URI かどうかをチェックします。

CreateAccentResourceUri ( Accent accent ) : Uri
CreateThemeResourceUri ( Theme theme ) : Uri
EnumerateDictionaries ( System.Windows.ResourceDictionary dictionary ) : IEnumerable
InitializeCore ( Application app, Theme theme, System.Windows.ResourceDictionary accent ) : void
Register ( System.Windows.ResourceDictionary rd, Theme theme, System.Windows.ResourceDictionary accentDic ) : IDisposable
ThemeService ( ) : System

Method Details

ChangeAccent() public method

public ChangeAccent ( Accent accent ) : void
accent Accent
return void

ChangeAccent() public method

public ChangeAccent ( System.Windows.ResourceDictionary accent ) : void
accent System.Windows.ResourceDictionary
return void

ChangeTheme() public method

public ChangeTheme ( Theme theme ) : void
theme Theme
return void

Initialize() public method

public Initialize ( Application app, Theme theme, Accent accent ) : void
app System.Windows.Application
theme Theme
accent Accent
return void

Initialize() public method

public Initialize ( Application app, Theme theme, System.Windows.ResourceDictionary accent ) : void
app System.Windows.Application
theme Theme
accent System.Windows.ResourceDictionary
return void

RaisePropertyChanged() protected method

protected RaisePropertyChanged ( [ propertyName = null ) : void
propertyName [
return void

Register() public method

public Register ( System.Windows.ResourceDictionary rd ) : IDisposable
rd System.Windows.ResourceDictionary
return IDisposable