Compartir a través de


MicaController.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
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

Tipo de evento

Implementaciones

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