다음을 통해 공유


DesktopAcrylicController.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
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

이벤트 유형

구현

설명

SystemBackdropState가 와 간에 Active 변경될 때 알림을 받도록 이 이벤트를 구독할 수 있습니다Fallback/High Contrast. 예를 들어 시스템 배경 재질 상태에 따라 업데이트하려는 다른 비시스템 배경 UI가 있을 수 있습니다.

적용 대상

추가 정보