Edit

Share via


Animation Class

Definition

A base model representing an animation that can be used in XAML.

public abstract class Animation : Windows.UI.Xaml.DependencyObject, Microsoft.Toolkit.Uwp.UI.Animations.ITimeline
type Animation = class
    inherit DependencyObject
    interface ITimeline
Public MustInherit Class Animation
Inherits DependencyObject
Implements ITimeline
Inheritance
Windows.UI.Xaml.DependencyObject
Animation
Derived
Implements

Constructors

Animation()

Fields

DelayBehaviorProperty

Identifies the dependency property.

DelayProperty

Identifies the dependency property.

DurationProperty

Identifies the dependency property.

EasingModeProperty

Identifies the dependency property.

EasingTypeProperty

Identifies the dependency property.

RepeatProperty

Identifies the dependency property.

Properties

Delay

Gets or sets the optional initial delay for the animation.

DelayBehavior

Gets or sets the delay behavior for the animation. The default value is set to Windows.UI.Composition.AnimationDelayBehavior.SetInitialValueBeforeDelay. This value is applicable when the current animation is used as either an implicit composition animation, or an explicit composition animation. If the current animation is instead running on the XAML layer (if used through CustomAnimation<TValue,TKeyFrame>), it will be ignored.

Duration

Gets or sets the animation duration.

EasingMode

Gets or sets the optional easing function mode for the animation.

EasingType

Gets or sets the optional easing function type for the animation.

Repeat

Gets or sets the repeat option for the animation.

Methods

AppendToBuilder(AnimationBuilder, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<EasingType>, Nullable<EasingMode>)

Appends the current animation to a target AnimationBuilder instance. This method is used when the current ITimeline instance is explicitly triggered.

Applies to