Class
ScaleAnimation

Scale animation for showing/hiding elements.

Definition

Constructors

ScaleAnimation()

Initializes a new instance of the ScaleAnimation class.

Declaration

cs-api-definition
public ScaleAnimation()

Properties

MaxScale

Gets or sets a value that describes the maximum scale during the animation.

Declaration

cs-api-definition
public double MaxScale { get; set; }

Property Value

double

MinScale

Gets or sets a value that describes the minimum scale during the animation.

Declaration

cs-api-definition
public double MinScale { get; set; }

Property Value

double

RenderTransformOrigin

The starting point of the scaling.

Declaration

cs-api-definition
public Point? RenderTransformOrigin { get; set; }

Property Value

Point?

ScaleMode

Gets or sets a value indicating the scaling mode (horizontal, vertical, both) of the animation.

Declaration

cs-api-definition
public ScaleMode ScaleMode { get; set; }

Property Value

ScaleMode

Methods

CreateAnimationOverride(FrameworkElement, FrameworkElement)

Creates the scale animation.

Declaration

cs-api-definition
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)

Parameters

control

FrameworkElement

The control for which the animation is needed.

target

FrameworkElement

The targeted element of the animation.

Returns

Storyboard

The newly created animation.

Overrides BaseAnimation.CreateAnimationOverride(FrameworkElement, FrameworkElement)

UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

Updates the scale animation.

Declaration

cs-api-definition
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)

Parameters

control

FrameworkElement

The control for which the animation needs to be updated.

storyboard

Storyboard

Storyboard that needs to be updated.

target

FrameworkElement

The targeted element of the animation.

args

object[]

Overrides BaseAnimation.UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

Remarks

Currently the method sets the SpeedRatio of the storyboard to the global AnimationSpeedRatio if the local SpeedRatio is null. If the local SpeedRatio value is set, it will be used.