Condividi tramite


DesktopAcrylicController.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
DesktopAcrylicController::StateChanged_revoker StateChanged(auto_revoke_t, TypedEventHandler<ISystemBackdropControllerWithTargets, IInspectable const&> const& handler) const;
public event TypedEventHandler<ISystemBackdropControllerWithTargets,object> StateChanged;
function onStateChanged(eventArgs) { /* Your code */ }
desktopAcrylicController.addEventListener("statechanged", onStateChanged);
desktopAcrylicController.removeEventListener("statechanged", onStateChanged);
- or -
desktopAcrylicController.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, 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