DesktopAcrylicController.StateChanged Event

Definition

Occurs when the state of the system backdrop has changed.

// Register
event_token StateChanged(TypedEventHandler<ISystemBackdropControllerWithTargets, IInspectable const&> const& handler) const;

// Revoke with event_token
void StateChanged(event_token const* cookie) const;

// Revoke with event_revoker
DesktopAcrylicController::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<ISystemBackdropControllerWithTargets, IInspectable const&> const& handler) const;
public event TypedEventHandler<ISystemBackdropControllerWithTargets,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
desktopAcrylicController.addEventListener("statechanged", onStateChanged);
desktopAcrylicController.removeEventListener("statechanged", onStateChanged);
- or -
desktopAcrylicController.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of ISystemBackdropControllerWithTargets, Object) Implements StateChanged

Event Type

Implements

Remarks

You can subscribe to this event to be notified when the SystemBackdropState changes between Active and Fallback/High Contrast. For example, you might have other non-system backdrop UI you would like to update based on the system backdrop material state.

Applies to

See also