Method StartAnimation
- Namespace
- SharpVectors.Runtime
- Assembly
- SharpVectors.Runtime.Wpf.dll
StartAnimation(UIElement, DependencyProperty, double, double, bool)
Starts an animation to a particular value on the specified dependency property.
public static void StartAnimation(UIElement animatableElement, DependencyProperty dependencyProperty, double toValue, double animationDurationSeconds, bool useAnimations)
Parameters
animatableElement
UIElementdependencyProperty
DependencyPropertytoValue
doubleanimationDurationSeconds
doubleuseAnimations
bool
StartAnimation(UIElement, DependencyProperty, double, double, EventHandler, bool)
Starts an animation to a particular value on the specified dependency property. You can pass in an event handler to call when the animation has completed.
public static void StartAnimation(UIElement animatableElement, DependencyProperty dependencyProperty, double toValue, double animationDurationSeconds, EventHandler completedEvent, bool useAnimations)
Parameters
animatableElement
UIElementdependencyProperty
DependencyPropertytoValue
doubleanimationDurationSeconds
doublecompletedEvent
EventHandleruseAnimations
bool
StartAnimation(UIElement, DependencyProperty, double, double)
Starts an animation to a particular value on the specified dependency property.
public static void StartAnimation(UIElement animatableElement, DependencyProperty dependencyProperty, double toValue, double animationDurationSeconds)
Parameters
animatableElement
UIElementdependencyProperty
DependencyPropertytoValue
doubleanimationDurationSeconds
double
StartAnimation(UIElement, DependencyProperty, double, double, EventHandler)
Starts an animation to a particular value on the specified dependency property. You can pass in an event handler to call when the animation has completed.
public static void StartAnimation(UIElement animatableElement, DependencyProperty dependencyProperty, double toValue, double animationDurationSeconds, EventHandler completedEvent)
Parameters
animatableElement
UIElementdependencyProperty
DependencyPropertytoValue
doubleanimationDurationSeconds
doublecompletedEvent
EventHandler