Window.VisibilityChanged 事件

定义

Visible 属性的值更改时发生。

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 

事件类型

注解

VisibilityChangedEventArgs 包含一个布尔值 Visible 属性,应检查该属性来确定当前可见性状态。

适用于