Bagikan melalui


DesktopAcrylicController.StateChanged Kejadian

Definisi

Terjadi ketika status backdrop sistem telah berubah.

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

Jenis Acara

Penerapan

Keterangan

Anda dapat berlangganan kejadian ini untuk diberi tahu ketika SystemBackdropState berubah antara Active dan/FallbackHigh Contrast . Misalnya, Anda mungkin memiliki UI backdrop non-sistem lain yang ingin Anda perbarui berdasarkan status material backdrop sistem.

Berlaku untuk

Lihat juga