GameBar.VisibilityChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
// Register
static event_token VisibilityChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void VisibilityChanged(event_token const* cookie) const;
// Revoke with event_revoker
static GameBar::VisibilityChanged_revoker VisibilityChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> VisibilityChanged;
function onVisibilityChanged(eventArgs) { /* Your code */ }
Windows.Gaming.UI.GameBar.addEventListener("visibilitychanged", onVisibilityChanged);
Windows.Gaming.UI.GameBar.removeEventListener("visibilitychanged", onVisibilityChanged);
- or -
Windows.Gaming.UI.GameBar.onvisibilitychanged = onVisibilityChanged;
Public Shared Custom Event VisibilityChanged As EventHandler(Of Object)