DesktopAcrylicController.StateChanged Evento
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Se produce cuando el estado del telón de fondo del sistema ha cambiado.
// 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 de evento
TypedEventHandler<ISystemBackdropControllerWithTargets,Object>
TypedEventHandler<ISystemBackdropControllerWithTargets,IInspectable>
Implementaciones
Comentarios
Puede suscribirse a este evento para recibir una notificación cuando systemBackdropState cambie entre Active y Fallback/High Contrast. Por ejemplo, es posible que tengas otra interfaz de usuario de fondo que no sea del sistema que quieras actualizar en función del estado del material del telón de fondo del sistema.