共用方式為


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

事件類型

實作

適用於