共用方式為


CoreFrameworkInputView.OcclusionsChanged 事件

定義

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

// Register
event_token OcclusionsChanged(TypedEventHandler<CoreFrameworkInputView, CoreFrameworkInputViewOcclusionsChangedEventArgs const&> const& handler) const;

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

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

事件類型

備註

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

適用於

另請參閱