ResizeAnimation
Animation for smooth resizing elements.
Definition
Namespace:Telerik.Windows.Controls.Animation
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ResizeAnimation : BaseAnimation
Inheritance: objectRadAnimationBaseAnimationResizeAnimation
Inherited Members
Constructors
Initializes a new instance of the ResizeAnimation class.
public ResizeAnimation()
Fields
CurrentSizeProperty
DependencyProperty
Represents the CurrentSize attached property.
public static readonly DependencyProperty CurrentSizeProperty
OldSizeProperty
DependencyProperty
Represents the OldSize attached property.
public static readonly DependencyProperty OldSizeProperty
Properties
Gets or sets a value indicating the resizing mode (horizontal, vertical, both) of the animation.
public ResizeAnimationResizeMode ResizeMode { get; set; }
Methods
Creates the slide 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:
Gets the CurrentSize for the given DependencyObject, normally a UIElement.
public static Size GetCurrentSize(DependencyObject obj)
The target animated object, normally a UIElement.
Returns:Size
The current size for the object.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Gets the OldSize for the given DependencyObject, normally a UIElement.
public static Size GetOldSize(DependencyObject obj)
The target animated object, normally a UIElement.
Returns:Size
The old size for the object.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Sets the CurrentSize attached property to the given DependencyObject, normally a UIElement.
public static void SetCurrentSize(DependencyObject obj, Size value)
The target animated object, normally a UIElement.
valueSizeThe current size to assign.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Sets the OldSize attached property to the given DependencyObject, normally a UIElement.
public static void SetOldSize(DependencyObject obj, Size value)
The target animated object, normally a UIElement.
valueSizeThe old size to assign.
This attached property is used by the controls to attach metadata for the animations and it is being used by the Resize and Move animations to deliver better experience.
Updates the slide 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.