FrameworkElement.ActualThemeChanged Event
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.
Occurs when the ActualTheme property value has changed.
// Register
event_token ActualThemeChanged(TypedEventHandler<FrameworkElement, IInspectable const&> const& handler) const;
// Revoke with event_token
void ActualThemeChanged(event_token const* cookie) const;
// Revoke with event_revoker
FrameworkElement::ActualThemeChanged_revoker ActualThemeChanged(auto_revoke_t, TypedEventHandler<FrameworkElement, IInspectable const&> const& handler) const;
public event TypedEventHandler<FrameworkElement,object> ActualThemeChanged;
function onActualThemeChanged(eventArgs) { /* Your code */ }
frameworkElement.addEventListener("actualthemechanged", onActualThemeChanged);
frameworkElement.removeEventListener("actualthemechanged", onActualThemeChanged);
- or -
frameworkElement.onactualthemechanged = onActualThemeChanged;
Public Custom Event ActualThemeChanged As TypedEventHandler(Of FrameworkElement, Object)
<frameworkElement ActualTheme="eventhandler"/>
Event Type
TypedEventHandler<FrameworkElement,IInspectable>
Windows requirements
Device family |
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v5.0)
|