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的任何值。