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

Implementazioni

Commenti

È possibile sottoscrivere questo evento per ricevere una notifica quando systemBackdropState cambia tra Active e/FallbackHigh Contrast . Ad esempio, potrebbe essere disponibile un'altra interfaccia utente di sfondo non di sistema che si desidera aggiornare in base allo stato del materiale dello sfondo del sistema.

Si applica a

Vedi anche