CoreInputView.PrimaryViewHiding 事件

定义

在与 CoreInputView 关联的输入窗格隐藏 ((如果) 可见)之前发生。

// Register
event_token PrimaryViewHiding(TypedEventHandler<CoreInputView, CoreInputViewHidingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreInputView::PrimaryViewHiding_revoker PrimaryViewHiding(auto_revoke_t, TypedEventHandler<CoreInputView, CoreInputViewHidingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreInputView,CoreInputViewHidingEventArgs> PrimaryViewHiding;
function onPrimaryViewHiding(eventArgs) { /* Your code */ }
coreInputView.addEventListener("primaryviewhiding", onPrimaryViewHiding);
coreInputView.removeEventListener("primaryviewhiding", onPrimaryViewHiding);
- or -
coreInputView.onprimaryviewhiding = onPrimaryViewHiding;
Public Custom Event PrimaryViewHiding As TypedEventHandler(Of CoreInputView, CoreInputViewHidingEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10, version 2004 (在 10.0.19041.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v10.0 中引入)

注解

应用程序必须位于前台才能触发此事件。

主视图是指 CoreInputViewKind.KeyboardCoreInputViewKind.Handwriting 视图之一,而 CoreInputView 可以是 CoreInputViewKind 中的任何值。

适用于

另请参阅