共用方式為


CoreInputView.OcclusionsChanged 事件

定義

發生于一或多個 CoreInputViewOcclusion 物件變更其位置或遮蔽區域,以回應與 CoreInputView相關聯的輸入窗格重新置放時。

// Register
event_token OcclusionsChanged(TypedEventHandler<CoreInputView, CoreInputViewOcclusionsChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreInputView::OcclusionsChanged_revoker OcclusionsChanged(auto_revoke_t, TypedEventHandler<CoreInputView, CoreInputViewOcclusionsChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreInputView,CoreInputViewOcclusionsChangedEventArgs> OcclusionsChanged;
function onOcclusionsChanged(eventArgs) { /* Your code */ }
coreInputView.addEventListener("occlusionschanged", onOcclusionsChanged);
coreInputView.removeEventListener("occlusionschanged", onOcclusionsChanged);
- or -
coreInputView.onocclusionschanged = onOcclusionsChanged;
Public Custom Event OcclusionsChanged As TypedEventHandler(Of CoreInputView, CoreInputViewOcclusionsChangedEventArgs) 

事件類型

備註

應用程式必須位於前景,才能引發此事件。

適用於

另請參閱