AnimationExtensions.Rotate Method

Definition

Overloads

Rotate(AnimationSet, Single, Single, Single, Double, Double, EasingType, EasingMode)

Animates the rotation in degrees of the UIElement.

Rotate(UIElement, Single, Single, Single, Double, Double, EasingType, EasingMode)

Animates the rotation in degrees of the UIElement.

Rotate(AnimationSet, Single, Single, Single, Double, Double, EasingType, EasingMode)

Animates the rotation in degrees of the UIElement.

public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Rotate (this Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet animationSet, float value = 0, float centerX = 0, float centerY = 0, double duration = 500, double delay = 0, 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.EaseOut);
static member Rotate : Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet * single * single * single * double * double * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
<Extension()>
Public Function Rotate (animationSet As AnimationSet, Optional value As Single = 0, Optional centerX As Single = 0, Optional centerY As Single = 0, Optional duration As Double = 500, Optional delay As Double = 0, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut) As AnimationSet

Parameters

animationSet
AnimationSet

The animation set.

value
Single

The value in degrees to rotate.

centerX
Single

The center x in pixels.

centerY
Single

The center y in pixels.

duration
Double

The duration in milliseconds.

delay
Double

The delay in milliseconds. (ignored if duration == 0)

easingType
EasingType

Used to describe how the animation interpolates between keyframes.

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

The EasingMode to use to interpolate between keyframes.

Returns

An AnimationSet.

Applies to

Rotate(UIElement, Single, Single, Single, Double, Double, EasingType, EasingMode)

Animates the rotation in degrees of the UIElement.

public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Rotate (this Windows.UI.Xaml.UIElement associatedObject, float value = 0, float centerX = 0, float centerY = 0, double duration = 500, double delay = 0, 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.EaseOut);
static member Rotate : Windows.UI.Xaml.UIElement * single * single * single * double * double * Microsoft.Toolkit.Uwp.UI.Animations.EasingType * Windows.UI.Xaml.Media.Animation.EasingMode -> Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet
<Extension()>
Public Function Rotate (associatedObject As UIElement, Optional value As Single = 0, Optional centerX As Single = 0, Optional centerY As Single = 0, Optional duration As Double = 500, Optional delay As Double = 0, Optional easingType As EasingType = Microsoft.Toolkit.Uwp.UI.Animations.EasingType.Default, Optional easingMode As EasingMode = Windows.UI.Xaml.Media.Animation.EasingMode.EaseOut) As AnimationSet

Parameters

associatedObject
Windows.UI.Xaml.UIElement

The UI Element to rotate.

value
Single

The value in degrees to rotate.

centerX
Single

The center x in pixels.

centerY
Single

The center y in pixels.

duration
Double

The duration in milliseconds.

delay
Double

The delay in milliseconds. (ignored if duration == 0)

easingType
EasingType

Used to describe how the animation interpolates between keyframes.

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

EasingMode used to interpolate between keyframes.

Returns

An AnimationSet.

Applies to