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。