HTML clipboardIAnimatable: An API which used for
controlling animation is provided by the IAnimatable, you will see an example of
that later on this article. To use an animation is to instantiate one of the
animation classes, configure it, and than use the BegainAnimation() of the
element you want to modify. All WPF elements inherit BeginAnimation(), which is
part of the IAnimatable interface, from the base UIElements class.
Recall that
AnimationTimeline is the base
class of all animation types, so you can pass any animation object into the
overloaded BeginAnimation method. GetAnimationBaseValue allows you to retrieve the value an
animated property would have had if it were not being animated.
IAnimatable seems a fairly simple
concept, and especially in its abstractness, relates to classes across a wide
independent spectrum allowing a parent object to assume, when it needs to, that
its child objects will animate in and out on its command.
Syntax of IAnimatable Interface
Public
Interface IAnimatable
Sub ApplyAnimationClock(dp
As DependencyProperty, clock
As AnimationClock)
Sub ApplyAnimationClock(dp
As DependencyProperty, clock
As AnimationClock, handoffBehavior
As HandoffBehavior)
Sub BeginAnimation(dp
As DependencyProperty, animation As
AnimationTimeline)
Sub BeginAnimation(dp
As DependencyProperty, animation As
AnimationTimeline, handoffBehavior As
HandoffBehavior)
Function GetAnimationBaseValue(dp
As DependencyProperty)
As Object
ReadOnly Property HasAnimatedProperties()
As Boolean
End Interface
Conclusion
I hope this article would help you to
understand about the IAnimatable Interface in WPF.