Class AeroTheme
Provides convenience helpers for the default AeroThemePolicy. The theme will update automatically if the system theme changes.
Inherited Members
Namespace: PresentationTheme.Aero
Assembly: PresentationTheme.Aero.dll
Syntax
public static class AeroTheme
Remarks
To use the theme, call SetAsCurrentTheme() and revert it using RemoveAsCurrentTheme().
Properties
| Improve this Doc View SourceResourceUri
Gets the Pack Uri for current theme resources. The resource URI will change if the system theme changes.
Declaration
public static Uri ResourceUri { get; }
Property Value
Type | Description |
---|---|
Uri |
Methods
| Improve this Doc View SourceRemoveAsCurrentTheme()
Removes the Aero theme, falling back to the default theme.
Declaration
public static bool RemoveAsCurrentTheme()
Returns
Type | Description |
---|---|
Boolean | true on success; otherwise false. |
SetAsCurrentTheme()
Sets the current theme to Aero using the default AeroThemePolicy. The theme will update automatically if the system theme changes.
Declaration
public static bool SetAsCurrentTheme()
Returns
Type | Description |
---|---|
Boolean | true on success; otherwise false. |
See Also
Events
| Improve this Doc View SourceResourceUriChanged
Occurs when the ResourceUri may have changed after a ThemeChanged event.
Declaration
public static event EventHandler ResourceUriChanged
Event Type
Type | Description |
---|---|
EventHandler |