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。

适用于

另请参阅