AnimationExtensions.Scale Method

Definition

Overloads

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

Animates the scale of the specified UIElement.

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

Animates the scale of the specified UIElement.

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

Animates the scale of the specified UIElement.

public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Scale (this Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet animationSet, float scaleX = 1, float scaleY = 1, 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 Scale : Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet * single * 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 Scale (animationSet As AnimationSet, Optional scaleX As Single = 1, Optional scaleY As Single = 1, 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 animationSet object.

scaleX
Single

The scale on the x axis.

scaleY
Single

The scale on the y axis.

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

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

Animates the scale of the specified UIElement.

public static Microsoft.Toolkit.Uwp.UI.Animations.AnimationSet Scale (this Windows.UI.Xaml.UIElement associatedObject, float scaleX = 1, float scaleY = 1, 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 Scale : Windows.UI.Xaml.UIElement * single * 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 Scale (associatedObject As UIElement, Optional scaleX As Single = 1, Optional scaleY As Single = 1, 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 associated UIElement.

scaleX
Single

The scale on the x axis.

scaleY
Single

The scale on the y axis.

centerX
Single

The center x in pixels.

centerY
Single

The center y in pixels.

duration
Double

The duration in millisecond.

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