ScaleAnimation
Scale animation for showing/hiding elements.
Definition
Namespace:Telerik.Windows.Controls.Animation
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ScaleAnimation : OrientedAnimation
Inheritance: objectRadAnimationBaseAnimationOrientedAnimationScaleAnimation
Inherited Members
Constructors
Initializes a new instance of the ScaleAnimation class.
public ScaleAnimation()
Properties
Gets or sets a value that describes the maximum scale during the animation.
public double MaxScale { get; set; }
Gets or sets a value that describes the minimum scale during the animation.
public double MinScale { get; set; }
RenderTransformOrigin
Point?
The starting point of the scaling.
public Point? RenderTransformOrigin { get; set; }
Methods
Creates the scale animation.
protected override Storyboard CreateAnimationOverride(FrameworkElement control, FrameworkElement target)
The control for which the animation is needed.
targetFrameworkElementThe targeted element of the animation.
Returns:Storyboard
The newly created animation.
Overrides:
Updates the scale animation.
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
The control for which the animation needs to be updated.
storyboardStoryboardStoryboard that needs to be updated.
targetFrameworkElementThe targeted element of the animation.
argsobject[]Overrides:
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.