UIElement::BeginAnimation Method (DependencyProperty, AnimationTimeline)
Starts an animation for a specified animated property on this element.
Assembly: PresentationCore (in PresentationCore.dll)
public: virtual void BeginAnimation( DependencyProperty^ dp, AnimationTimeline^ animation ) sealed
- Type: System.Windows::DependencyProperty
The property to animate, which is specified as a dependency property identifier.
- Type: System.Windows.Media.Animation::AnimationTimeline
The timeline of the animation to start.
When you check whether a property is animated, note that the animation will begin and be considered animated when the first frame beyond the non-animated starting point is rendered.
If the BeginTime for animation is nullptr, then any current animations are removed and the current value of the property is held.
If the entire animation value is nullptr, all animations are removed from the property and the property value reverts to its base value. However, the originally associated animation timeline is not stopped. Any other animations assigned to that timeline will continue to run.