DependencyObjectExtensions.CreatePointAnimation Method

Definition

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

public static Windows.UI.Xaml.Media.Animation.PointAnimation CreatePointAnimation (this Windows.UI.Xaml.DependencyObject target, string property, Windows.Foundation.Point to, Windows.Foundation.Point? 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 CreatePointAnimation : Windows.UI.Xaml.DependencyObject * string * Windows.Foundation.Point * Nullable<Windows.Foundation.Point> * 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.PointAnimation
<Extension()>
Public Function CreatePointAnimation (target As DependencyObject, property As String, to As Point, from As Nullable(Of Point), 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 PointAnimation

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
Point

The final property value.

from
Nullable<Point>

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.PointAnimation.

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

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

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.PointAnimation

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

Applies to