Поделиться через


ISystemBackdropControllerWithTargets.StateChanged Событие

Определение

Происходит при изменении состояния системного фона.

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

Тип события

Комментарии

Вы можете подписаться на это событие, чтобы получать уведомления при изменении Параметра SystemBackdropState между Active и Fallback/High Contrast. Например, у вас может быть другой несистемный пользовательский интерфейс фона, который вы хотите обновить на основе состояния материала фона системы.

Применяется к

См. также раздел