Edit

Share via


DependencyObjectExtensions.CreateDoubleAnimation Method

Definition

Prepares a Windows.UI.Xaml.Media.Animation.DoubleAnimation with the given info.

public static Windows.UI.Xaml.Media.Animation.DoubleAnimation CreateDoubleAnimation (this Windows.UI.Xaml.DependencyObject target, string property, double to, double? from, TimeSpan? delay, TimeSpan duration, Windows.UI.Xaml.Media.Animation.EasingFunctionBase? easing = default, Windows.UI.Xaml.Media.Animation.RepeatBehavior? repeatBehavior = default, Windows.UI.Xaml.Media.Animation.FillBehavior fillBehavior = Windows.UI.Xaml.Media.Animation.FillBehavior.HoldEnd, bool autoReverse = false, bool enableDependecyAnimations = false);
static member CreateDoubleAnimation : Windows.UI.Xaml.DependencyObject * string * double * Nullable<double> * Nullable<TimeSpan> * TimeSpan * Windows.UI.Xaml.Media.Animation.EasingFunctionBase * Nullable<Windows.UI.Xaml.Media.Animation.RepeatBehavior> * Windows.UI.Xaml.Media.Animation.FillBehavior * bool * bool -> Windows.UI.Xaml.Media.Animation.DoubleAnimation
<Extension()>
Public Function CreateDoubleAnimation (target As DependencyObject, property As String, to As Double, from As Nullable(Of Double), delay As Nullable(Of TimeSpan), duration As TimeSpan, Optional easing As EasingFunctionBase = Nothing, Optional repeatBehavior As Nullable(Of RepeatBehavior) = Nothing, Optional fillBehavior As FillBehavior = Windows.UI.Xaml.Media.Animation.FillBehavior.HoldEnd, Optional autoReverse As Boolean = false, Optional enableDependecyAnimations As Boolean = false) As DoubleAnimation

Parameters

target
Windows.UI.Xaml.DependencyObject

The target Windows.UI.Xaml.DependencyObject to animate.

property
String

The property to animate inside the target Windows.UI.Xaml.DependencyObject.

to
Double

The final property value.

from
Nullable<Double>

The optional initial property value.

delay
Nullable<TimeSpan>

The optional delay for the animation.

duration
TimeSpan

The duration of the Windows.UI.Xaml.Media.Animation.DoubleAnimation.

easing
Windows.UI.Xaml.Media.Animation.EasingFunctionBase

The easing function to use inside the Windows.UI.Xaml.Media.Animation.DoubleAnimation.

repeatBehavior
Nullable<RepeatBehavior>

The repeat behavior for the animation (defaults to one iteration).

fillBehavior
Windows.UI.Xaml.Media.Animation.FillBehavior

The behavior to use when the animation reaches the end of its schedule.

autoReverse
Boolean

Indicates whether the animation plays in reverse after each forward iteration.

enableDependecyAnimations
Boolean

Indicates whether or not to apply this animation to elements that need the visual tree to be rearranged.

Returns

Windows.UI.Xaml.Media.Animation.DoubleAnimation

A Windows.UI.Xaml.Media.Animation.DoubleAnimation instance with the specified parameters.

Applies to