Share via


CoreInputView.XYFocusTransferredToPrimaryView Event

Definition

Occurs when focus is moved to the input pane from the application UI.

// Register
event_token XYFocusTransferredToPrimaryView(TypedEventHandler<CoreInputView, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
CoreInputView::XYFocusTransferredToPrimaryView_revoker XYFocusTransferredToPrimaryView(auto_revoke_t, TypedEventHandler<CoreInputView, IInspectable const&> const& handler) const;
public event TypedEventHandler<CoreInputView,object> XYFocusTransferredToPrimaryView;
function onXYFocusTransferredToPrimaryView(eventArgs) { /* Your code */ }
coreInputView.addEventListener("xyfocustransferredtoprimaryview", onXYFocusTransferredToPrimaryView);
coreInputView.removeEventListener("xyfocustransferredtoprimaryview", onXYFocusTransferredToPrimaryView);
- or -
coreInputView.onxyfocustransferredtoprimaryview = onXYFocusTransferredToPrimaryView;
Public Custom Event XYFocusTransferredToPrimaryView As TypedEventHandler(Of CoreInputView, Object) 

Event Type

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.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