AnimationBuilder.CenterPoint Method

Definition

Overloads

CenterPoint()

Adds a new center point animation for all axes to the current schedule.

CenterPoint(Axis, FrameworkLayer)

Adds a new center point animation on a specified axis to the current schedule.

CenterPoint(Vector3, Nullable<Vector3>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode)

Adds a new center point animation for all axes to the current schedule.

CenterPoint(Vector2, Nullable<Vector2>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode, FrameworkLayer)

Adds a new center point animation for the X and Y axes to the current schedule.

CenterPoint(Axis, Double, Nullable<Double>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode, FrameworkLayer)

Adds a new center point animation on a specified axis to the current schedule.

CenterPoint()

Adds a new center point animation for all axes to the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.IPropertyAnimationBuilder<System.Numerics.Vector3> CenterPoint ();
member this.CenterPoint : unit -> Microsoft.Toolkit.Uwp.UI.Animations.IPropertyAnimationBuilder<System.Numerics.Vector3>
Public Function CenterPoint () As IPropertyAnimationBuilder(Of Vector3)

Returns

An IPropertyAnimationBuilder<T> instance to configure the animation.

Remarks

This animation is only available on the composition layer.

Applies to

CenterPoint(Axis, FrameworkLayer)

Adds a new center point animation on a specified axis to the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.IPropertyAnimationBuilder<double> CenterPoint (Microsoft.Toolkit.Uwp.UI.Animations.Axis axis, Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer layer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition);
member this.CenterPoint : Microsoft.Toolkit.Uwp.UI.Animations.Axis * Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer -> Microsoft.Toolkit.Uwp.UI.Animations.IPropertyAnimationBuilder<double>
Public Function CenterPoint (axis As Axis, Optional layer As FrameworkLayer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) As IPropertyAnimationBuilder(Of Double)

Parameters

axis
Axis

The target scale axis to animate.

layer
FrameworkLayer

The target framework layer to animate.

Returns

An IPropertyAnimationBuilder<T> instance to configure the animation.

Applies to

CenterPoint(Vector3, Nullable<Vector3>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode)

Adds a new center point animation for all axes to the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder CenterPoint (System.Numerics.Vector3 to, System.Numerics.Vector3? from = default, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeat = default, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut);
member this.CenterPoint : System.Numerics.Vector3 * Nullable<System.Numerics.Vector3> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption> * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder
Public Function CenterPoint (to As Vector3, Optional from As Nullable(Of Vector3) = Nothing, Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeat As Nullable(Of RepeatOption) = Nothing, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut) As AnimationBuilder

Parameters

to
Vector3

The final point for the animation.

from
Nullable<Vector3>

The optional starting point for the animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

duration
Nullable<TimeSpan>

The optional animation duration.

repeat
Nullable<RepeatOption>

The optional repeat mode (defaults to once).

easingType
EasingType

The optional easing function type for the animation.

easingMode
Windows.UI.Xaml.Media.Animation.EasingMode

The optional easing function mode for the animation.

Returns

The current AnimationBuilder instance.

Remarks

This animation is only available on the composition layer.

Applies to

CenterPoint(Vector2, Nullable<Vector2>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode, FrameworkLayer)

Adds a new center point animation for the X and Y axes to the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder CenterPoint (System.Numerics.Vector2 to, System.Numerics.Vector2? from = default, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeat = default, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut, Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer layer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition);
member this.CenterPoint : System.Numerics.Vector2 * Nullable<System.Numerics.Vector2> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption> * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode * Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder
Public Function CenterPoint (to As Vector2, Optional from As Nullable(Of Vector2) = Nothing, Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeat As Nullable(Of RepeatOption) = Nothing, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut, Optional layer As FrameworkLayer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) As AnimationBuilder

Parameters

to
Vector2

The final point for the animation.

from
Nullable<Vector2>

The optional starting point for the animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

duration
Nullable<TimeSpan>

The optional animation duration.

repeat
Nullable<RepeatOption>

The optional repeat mode (defaults to once).

easingType
EasingType

The optional easing function type for the animation.

easingMode
Windows.UI.Xaml.Media.Animation.EasingMode

The optional easing function mode for the animation.

layer
FrameworkLayer

The target framework layer to animate.

Returns

The current AnimationBuilder instance.

Applies to

CenterPoint(Axis, Double, Nullable<Double>, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<RepeatOption>, EasingType, EasingMode, FrameworkLayer)

Adds a new center point animation on a specified axis to the current schedule.

public Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder CenterPoint (Microsoft.Toolkit.Uwp.UI.Animations.Axis axis, double to, double? from = default, TimeSpan? delay = default, TimeSpan? duration = default, Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption? repeat = default, Microsoft.Toolkit.Uwp.UI.Animations.EasingType easingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Windows.UI.Xaml.Media.Animation.EasingMode easingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut, Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer layer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition);
member this.CenterPoint : Microsoft.Toolkit.Uwp.UI.Animations.Axis * double * Nullable<double> * Nullable<TimeSpan> * Nullable<TimeSpan> * Nullable<Microsoft.Toolkit.Uwp.UI.Animations.RepeatOption> * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode * Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder
Public Function CenterPoint (axis As Axis, to As Double, Optional from As Nullable(Of Double) = Nothing, Optional delay As Nullable(Of TimeSpan) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional repeat As Nullable(Of RepeatOption) = Nothing, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseInOut, Optional layer As FrameworkLayer = Microsoft.Toolkit.Uwp.UI.Animations.FrameworkLayer.Composition) As AnimationBuilder

Parameters

axis
Axis

The target scale axis to animate.

to
Double

The final value for the animation.

from
Nullable<Double>

The optional starting value for the animation.

delay
Nullable<TimeSpan>

The optional initial delay for the animation.

duration
Nullable<TimeSpan>

The optional animation duration.

repeat
Nullable<RepeatOption>

The optional repeat mode (defaults to once).

easingType
EasingType

The optional easing function type for the animation.

easingMode
Windows.UI.Xaml.Media.Animation.EasingMode

The optional easing function mode for the animation.

layer
FrameworkLayer

The target framework layer to animate.

Returns

The current AnimationBuilder instance.

Applies to