CoreWindow.VisibilityChanged 事件

定义

当窗口可见性发生更改时触发。

// Register
event_token VisibilityChanged(TypedEventHandler<CoreWindow, VisibilityChangedEventArgs const&> const& handler) const;

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

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

事件类型

实现

适用于