共用方式為


CoreFrameworkInputView.PrimaryViewAnimationStarting 事件

定義

應用程式中發生的動畫,以回應 與 CoreFrameworkInputView相關聯的輸入窗格的顯示或隱藏。

// Register
event_token PrimaryViewAnimationStarting(TypedEventHandler<CoreFrameworkInputView, CoreFrameworkInputViewAnimationStartingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreFrameworkInputView::PrimaryViewAnimationStarting_revoker PrimaryViewAnimationStarting(auto_revoke_t, TypedEventHandler<CoreFrameworkInputView, CoreFrameworkInputViewAnimationStartingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreFrameworkInputView,CoreFrameworkInputViewAnimationStartingEventArgs> PrimaryViewAnimationStarting;
function onPrimaryViewAnimationStarting(eventArgs) { /* Your code */ }
coreFrameworkInputView.addEventListener("primaryviewanimationstarting", onPrimaryViewAnimationStarting);
coreFrameworkInputView.removeEventListener("primaryviewanimationstarting", onPrimaryViewAnimationStarting);
- or -
coreFrameworkInputView.onprimaryviewanimationstarting = onPrimaryViewAnimationStarting;
Public Custom Event PrimaryViewAnimationStarting As TypedEventHandler(Of CoreFrameworkInputView, CoreFrameworkInputViewAnimationStartingEventArgs) 

事件類型

備註

主要檢視是指 CoreInputViewKind.KeyboardCoreInputViewKind.Handwriting 檢視,而 CoreInputView 可以是 CoreInputViewKind的任何值。

應用程式 UI 會根據 CoreInputViewOcclusion.OccludingRect進行重排,這是隱藏時空的 Rect。

適用於

另請參閱