共用方式為


CoreInputView.PrimaryViewShowing 事件

定義

如果隱藏) ,則會在與 CoreInputView 相關聯的輸入窗格顯示之前發生 (。

// Register
event_token PrimaryViewShowing(TypedEventHandler<CoreInputView, CoreInputViewShowingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreInputView::PrimaryViewShowing_revoker PrimaryViewShowing(auto_revoke_t, TypedEventHandler<CoreInputView, CoreInputViewShowingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreInputView,CoreInputViewShowingEventArgs> PrimaryViewShowing;
function onPrimaryViewShowing(eventArgs) { /* Your code */ }
coreInputView.addEventListener("primaryviewshowing", onPrimaryViewShowing);
coreInputView.removeEventListener("primaryviewshowing", onPrimaryViewShowing);
- or -
coreInputView.onprimaryviewshowing = onPrimaryViewShowing;
Public Custom Event PrimaryViewShowing As TypedEventHandler(Of CoreInputView, CoreInputViewShowingEventArgs) 

事件類型

Windows 需求

裝置系列
Windows 10, version 2004 (已於 10.0.19041.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v10.0 引進)

備註

主要檢視是指 CoreInputViewKind.KeyboardCoreInputViewKind.Handwriting 檢視,而 CoreInputView 可以是 CoreInputViewKind的任何值。

適用於

另請參閱