Animatable.BeginAnimation Method (DependencyProperty, AnimationTimeline)

Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used.

Namespace:  System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)

abstract BeginAnimation : 
        dp:DependencyProperty * 
        animation:AnimationTimeline -> unit  
override BeginAnimation : 
        dp:DependencyProperty * 
        animation:AnimationTimeline -> unit

Parameters

dp
Type: System.Windows.DependencyProperty

The property to animate.

animation
Type: System.Windows.Media.Animation.AnimationTimeline

The animation used to animate the specified property.

If the animation's BeginTime is a null reference (Nothing in Visual Basic), any current animations will be removed and the current value of the property will be held.

If animation is a null reference (Nothing in Visual Basic), all animations will be removed from the property and the property value will revert back to its base value.

Implements

IAnimatable.BeginAnimation(DependencyProperty, AnimationTimeline)

If the animation has a BeginTime that is greater than zero, the animation begins after that amount of time has elapsed from the time the next frame is rendered.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft