Window.VisibilityChanged Ereignis

Definition

Tritt auf, wenn sich der Wert der Visible-Eigenschaft ändert.

public:
 virtual event WindowVisibilityChangedEventHandler ^ VisibilityChanged;
// Register
event_token VisibilityChanged(WindowVisibilityChangedEventHandler 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, WindowVisibilityChangedEventHandler const& handler) const;
public event WindowVisibilityChangedEventHandler VisibilityChanged;
function onVisibilityChanged(eventArgs) { /* Your code */ }
window.addEventListener("visibilitychanged", onVisibilityChanged);
window.removeEventListener("visibilitychanged", onVisibilityChanged);
- or -
window.onvisibilitychanged = onVisibilityChanged;
Public Custom Event VisibilityChanged As WindowVisibilityChangedEventHandler 

Ereignistyp

Hinweise

VisibilityChangedEventArgs enthält eine boolesche Visible-Eigenschaft , die Sie überprüfen sollten, um den aktuellen Sichtbarkeitsstatus zu bestimmen.

Gilt für: