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