CoreInputView.XYFocusTransferredToPrimaryView 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当焦点从应用程序 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)
事件类型
TypedEventHandler<CoreInputView,IInspectable>
Windows 要求
设备系列 |
Windows 10, version 1803 (在 10.0.17134.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)
|
注解
主视图引用 CoreInputViewKind.Keyboard 或 CoreInputViewKind.Handwriting 视图,而 CoreInputView 可以是 CoreInputViewKind 中的任何值。