SysHolographicWindowingEnvironment.IsPreviewActiveChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
预览变为活动或非活动状态时引发的事件。
重要
此 API 仅适用于 Windows 操作系统的组件。 对于所有其他进程,对这些 API 的调用将在运行时失败。 将来的 Windows 版本中可能会修改或删除这些 API。
// Register
event_token IsPreviewActiveChanged(TypedEventHandler<SysHolographicWindowingEnvironment, IInspectable const&> const& handler) const;
// Revoke with event_token
void IsPreviewActiveChanged(event_token const* cookie) const;
// Revoke with event_revoker
SysHolographicWindowingEnvironment::IsPreviewActiveChanged_revoker IsPreviewActiveChanged(auto_revoke_t, TypedEventHandler<SysHolographicWindowingEnvironment, IInspectable const&> const& handler) const;
public event TypedEventHandler<SysHolographicWindowingEnvironment,object> IsPreviewActiveChanged;
function onIsPreviewActiveChanged(eventArgs) { /* Your code */ }
sysHolographicWindowingEnvironment.addEventListener("ispreviewactivechanged", onIsPreviewActiveChanged);
sysHolographicWindowingEnvironment.removeEventListener("ispreviewactivechanged", onIsPreviewActiveChanged);
- or -
sysHolographicWindowingEnvironment.onispreviewactivechanged = onIsPreviewActiveChanged;
Public Custom Event IsPreviewActiveChanged As TypedEventHandler(Of SysHolographicWindowingEnvironment, Object)
事件类型
TypedEventHandler<SysHolographicWindowingEnvironment,Object>
TypedEventHandler<SysHolographicWindowingEnvironment,IInspectable>