Interface IThemeService
Represents a contract with a service that provides tools for manipulating the theme.
public interface IThemeService
Methods
GetNativeSystemTheme()
Gets current system theme.
SystemTheme GetNativeSystemTheme()
Returns
- SystemTheme
Currently set Windows theme using system enumeration.
GetSystemTheme()
Gets current system theme.
ApplicationTheme GetSystemTheme()
Returns
- ApplicationTheme
Currently set Windows theme.
GetTheme()
Gets current application theme.
ApplicationTheme GetTheme()
Returns
- ApplicationTheme
Currently set application theme.
SetAccent(Color)
Sets current application accent.
bool SetAccent(Color accentColor)
Parameters
accentColorColor
Returns
SetAccent(SolidColorBrush)
Sets current application accent.
bool SetAccent(SolidColorBrush accentSolidBrush)
Parameters
accentSolidBrushSolidColorBrush
Returns
SetSystemAccent()
Sets currently used Windows OS accent.
bool SetSystemAccent()
Returns
SetTheme(ApplicationTheme)
Sets current application theme.
bool SetTheme(ApplicationTheme applicationTheme)
Parameters
applicationThemeApplicationThemeTheme type to set.