CompositionPropertyAnimator.AnimationEnded 事件

定义

在动画结束时发生。

// Register
event_token AnimationEnded(TypedEventHandler<CompositionPropertyAnimator, AnimationEndedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CompositionPropertyAnimator::AnimationEnded_revoker AnimationEnded(auto_revoke_t, TypedEventHandler<CompositionPropertyAnimator, AnimationEndedEventArgs const&> const& handler) const;
public event TypedEventHandler<CompositionPropertyAnimator,AnimationEndedEventArgs> AnimationEnded;
function onAnimationEnded(eventArgs) { /* Your code */ }
compositionPropertyAnimator.addEventListener("animationended", onAnimationEnded);
compositionPropertyAnimator.removeEventListener("animationended", onAnimationEnded);
- or -
compositionPropertyAnimator.onanimationended = onAnimationEnded;
Public Custom Event AnimationEnded As TypedEventHandler(Of CompositionPropertyAnimator, AnimationEndedEventArgs) 

事件类型

注解

重要

此 API 仅存在于 Windows 10 版本 1507 (内部版本 10240) 中。

适用于