Animation
object to the Style.Animation
property:Control
as defined by its selector. It will be run immediately when the control is loaded.Triggers
, Animations defined in XAML rely on selectors for their triggering behavior. Selectors can always apply to a control, or they can conditionally apply (for example if the control has a style class appled).Control
is spawned into the visual tree. Otherwise, the animations will run whenever its selector is activated. When the selector no longer matches, the currently running animation will be canceled.KeyFrames
KeyFrame
objects defines when the target Setter
objects should be applied on the target Control
, with value interpolation in-between.Cue
property of an KeyFrame
object is based on the Duration
of the parent animation and can be an absolute time index (i.e., "0:0:1"
) or a percent of the animation's Duration
(i.e., "0%"
, "100%"
). However, Cue
's value should not exceed the Duration
specified.Animation
objects should contain at least one KeyFrame
, with a Setter
that has target property and value.Setter
objects on the desired KeyFrame
:Animation
by defining the desired delay time on its Delay
property:IterationCount
property of an Animation
.0
to NINFINITE
PlaybackDirection
property defines how should the animation be played, including repeats.Normal
Reverse
Alternate
AlternateReverse
FillMode
property defines whether the first or last interpolated value of an animation persist before or after running an animation and on delays in-between runs.None
Forward
Backward
Both
Forward
and Backward
behaviors will be applied.Animation
's Easing
property: