Compartir a través de


Window.VisibilityChanged Evento

Definición

Se produce cuando cambia el valor de la propiedad Visible .

// Register
event_token VisibilityChanged(TypedEventHandler<IInspectable, WindowVisibilityChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void VisibilityChanged(event_token const* cookie) const;

// Revoke with event_revoker
Window::VisibilityChanged_revoker VisibilityChanged(auto_revoke_t, TypedEventHandler<IInspectable, WindowVisibilityChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<object,WindowVisibilityChangedEventArgs> VisibilityChanged;
function onVisibilityChanged(eventArgs) { /* Your code */ }
window.addEventListener("visibilitychanged", onVisibilityChanged);
window.removeEventListener("visibilitychanged", onVisibilityChanged);
- or -
window.onvisibilitychanged = onVisibilityChanged;
Public Custom Event VisibilityChanged As TypedEventHandler(Of Object, WindowVisibilityChangedEventArgs) 

Tipo de evento

Comentarios

VisibilityChangedEventArgs incluye una propiedad booleana Visible que debe comprobar para determinar el estado de visibilidad actual.

Se aplica a

Consulte también