Compartir a través de


ISystemBackdropControllerWithTargets.StateChanged Evento

Definición

Se produce cuando el estado del fondo del sistema ha cambiado.

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

Tipo de evento

Comentarios

Puede suscribirse a este evento para recibir una notificación cuando systemBackdropState cambie entre Active y Fallback/High Contrast. Por ejemplo, es posible que tenga otra interfaz de usuario de fondo que no sea del sistema que le gustaría actualizar según el estado del material de fondo del sistema.

Se aplica a

Consulte también