New to Telerik UI for WPFStart a free 30-day trial

Scale animation for showing/hiding elements.

Definition

Constructors

Initializes a new instance of the ScaleAnimation class.

C#
public ScaleAnimation()

Properties

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

C#
public double MaxScale { get; set; }

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

C#
public double MinScale { get; set; }

The starting point of the scaling.

C#
public Point? RenderTransformOrigin { get; set; }

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

C#
public ScaleMode ScaleMode { get; set; }

Methods

Creates the scale animation.

C#
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
Parameters:controlFrameworkElement

The control for which the animation is needed.

targetFrameworkElement

The targeted element of the animation.

Returns:

Storyboard

The newly created animation.

Overrides: BaseAnimation.CreateAnimationOverride(FrameworkElement, FrameworkElement)

Updates the scale animation.

C#
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

targetFrameworkElement

The targeted element of the animation.

argsobject[]

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.