ThemeListener Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Class which listens for changes to Application Theme or High Contrast Modes and Signals an Event when they occur.
[Windows.Foundation.Metadata.AllowForWeb]
public sealed class ThemeListener : IDisposable
[<Windows.Foundation.Metadata.AllowForWeb>]
type ThemeListener = class
interface IDisposable
Public NotInheritable Class ThemeListener
Implements IDisposable
- Inheritance
-
ThemeListener
- Attributes
-
Windows.Foundation.Metadata.AllowForWebAttribute
- Implements
Constructors
ThemeListener() |
Initializes a new instance of the ThemeListener class. |
ThemeListener(DispatcherQueue) |
Initializes a new instance of the ThemeListener class. |
Properties
CurrentTheme |
Gets or sets the Current Theme. |
CurrentThemeName |
Gets the Name of the Current Theme. |
DispatcherQueue |
Gets or sets which DispatcherQueue is used to dispatch UI updates. |
IsHighContrast |
Gets or sets a value indicating whether the current theme is high contrast. |
Methods
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Events
ThemeChanged |
An event that fires if the Theme changes. |