Show / Hide Table of Contents

Class AeroTheme

Provides convenience helpers for the default AeroThemePolicy. The theme will update automatically if the system theme changes.

Inheritance
Object
AeroTheme
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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 Source

ResourceUri

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 Source

RemoveAsCurrentTheme()

Removes the Aero theme, falling back to the default theme.

Declaration
public static bool RemoveAsCurrentTheme()
Returns
Type Description
Boolean

true on success; otherwise false.

| Improve this Doc View Source

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
AeroThemePolicy

Events

| Improve this Doc View Source

ResourceUriChanged

Occurs when the ResourceUri may have changed after a ThemeChanged event.

Declaration
public static event EventHandler ResourceUriChanged
Event Type
Type Description
EventHandler

See Also

AeroThemePolicy
SetAsCurrentTheme()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX