CoreInputView.PrimaryViewHiding Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs before the input pane associated with the CoreInputView is hidden (if visible).
// 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)
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
The application must be in the foreground for this event to fire.
Primary view refers to either of the CoreInputViewKind.Keyboard or CoreInputViewKind.Handwriting views, while CoreInputView can be any of the values from CoreInputViewKind.