Class ThemeService
Lets you set the app theme.
public class ThemeService : IThemeService- Inheritance
- 
      
      ThemeService
- Implements
- Inherited Members
Methods
GetNativeSystemTheme()
Gets current system theme.
public virtual SystemTheme GetNativeSystemTheme()Returns
- SystemTheme
- Currently set Windows theme using system enumeration. 
GetSystemTheme()
Gets current system theme.
public virtual ApplicationTheme GetSystemTheme()Returns
- ApplicationTheme
- Currently set Windows theme. 
GetTheme()
Gets current application theme.
public virtual ApplicationTheme GetTheme()Returns
- ApplicationTheme
- Currently set application theme. 
SetAccent(Color)
Sets current application accent.
public bool SetAccent(Color accentColor)Parameters
- accentColorColor
Returns
SetAccent(SolidColorBrush)
Sets current application accent.
public bool SetAccent(SolidColorBrush accentSolidBrush)Parameters
- accentSolidBrushSolidColorBrush
Returns
SetSystemAccent()
Sets currently used Windows OS accent.
public bool SetSystemAccent()Returns
SetTheme(ApplicationTheme)
Sets current application theme.
public virtual bool SetTheme(ApplicationTheme applicationTheme)Parameters
- applicationThemeApplicationTheme
- Theme type to set.