Share via


CoreInputView.PrimaryViewShowing Event

Definition

Occurs before the input pane associated with the CoreInputView is shown (if hidden).

// 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) 

Event Type

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Remarks

Primary view refers to either of the CoreInputViewKind.Keyboard or CoreInputViewKind.Handwriting views, while CoreInputView can be any of the values from CoreInputViewKind.

Applies to

See also