MicaController.StateChanged 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 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
MicaController::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<ISystemBackdropControllerWithTargets, IInspectable const&> const& handler) const;
public event TypedEventHandler<ISystemBackdropControllerWithTargets,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
micaController.addEventListener("statechanged", onStateChanged);
micaController.removeEventListener("statechanged", onStateChanged);
- or -
micaController.onstatechanged = onStateChanged;
Public Custom Event StateChanged As TypedEventHandler(Of ISystemBackdropControllerWithTargets, Object) Implements StateChanged
Event Type
TypedEventHandler<ISystemBackdropControllerWithTargets,Object>
TypedEventHandler<ISystemBackdropControllerWithTargets,IInspectable>
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.