共用方式為


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的任何值。

適用於

另請參閱