IAnimatable.BeginAnimation Method

Definition

Initiates an animation sequence for this instance.

Overloads

BeginAnimation(DependencyProperty, AnimationTimeline)

Initiates an animation sequence for the DependencyProperty object, based on the specified AnimationTimeline.

BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

Initiates an animation sequence for the DependencyProperty.object, based on both the specified AnimationTimeline and HandoffBehavior.

Remarks

The animation sequence is triggered once the next frame is rendered.

BeginAnimation(DependencyProperty, AnimationTimeline)

Initiates an animation sequence for the DependencyProperty object, based on the specified AnimationTimeline.

C#
public void BeginAnimation(System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationTimeline animation);

Parameters

dp
DependencyProperty

The object to animate.

animation
AnimationTimeline

The timeline with the necessary functionality to animate the property.

Remarks

The animation sequence is triggered once the next frame is rendered.

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior)

Initiates an animation sequence for the DependencyProperty.object, based on both the specified AnimationTimeline and HandoffBehavior.

C#
public void BeginAnimation(System.Windows.DependencyProperty dp, System.Windows.Media.Animation.AnimationTimeline animation, System.Windows.Media.Animation.HandoffBehavior handoffBehavior);

Parameters

dp
DependencyProperty

The object to animate.

animation
AnimationTimeline

The timeline with the necessary functionality to tailor the new animation.

handoffBehavior
HandoffBehavior

The object specifying the manner in which to interact with all relevant animation sequences.

Remarks

The animation sequence is triggered once the next frame is rendered.

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10