CoreFrameworkInputView.PrimaryViewAnimationStarting 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
應用程式中發生的動畫,以回應 與 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.Keyboard 或 CoreInputViewKind.Handwriting 檢視,而 CoreInputView 可以是 CoreInputViewKind的任何值。
應用程式 UI 會根據 CoreInputViewOcclusion.OccludingRect進行重排,這是隱藏時空的 Rect。