ThemeListener
Class
Assembly LiveChartsCore.SkiaSharpView.WinUI
Namespace LiveChartsCore.SkiaSharpView.WinUI
Summary:
Listens for changes to the Application Theme.
Object
=>
ThemeListener
Constructors
// Initializes a new instance of the ThemeListener class.
| Action action, | // The action to perform when the theme changes. |
| DispatcherQueue dispatcherQueue | // The DispatcherQueue that should be used to dispatch UI updates, or null if this is being called from the UI thread. |
)
Properties
Gets or sets the Current Theme.
Type: ApplicationTheme
Type: ApplicationTheme
Gets or sets which DispatcherQueue is used to dispatch UI updates.
Type: DispatcherQueue
Type: DispatcherQueue
Events
An event that fires if the Theme changes.
Handler definition: Action
Handler definition: Action
Methods
// Adds the event handlers to listen for theme changes.
// Disposes of the ThemeListener.