ISystemBackdropControllerWithTargets.StateChanged Evento

Definizione

Si verifica quando lo stato dello sfondo del sistema è cambiato.

// 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 evento

Commenti

È possibile sottoscrivere questo evento per ricevere una notifica quando SystemBackdropState cambia tra Active e/FallbackHigh Contrast . Ad esempio, potresti avere un'altra interfaccia utente di sfondo non di sistema che desideri aggiornare in base allo stato del materiale dello sfondo del sistema.

Si applica a

Vedi anche