Window.VisibilityChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 属性,应检查该属性来确定当前可见性状态。