Class ResizeAnimation
Animation for smooth resizing elements.
Inherited Members
Namespace: Telerik.Windows.Controls.Animation
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ResizeAnimation : BaseAnimation
Constructors
ResizeAnimation()
Fields
CurrentSizeProperty
Represents the CurrentSize attached property.
Declaration
public static readonly DependencyProperty CurrentSizeProperty
Field Value
System.Windows.DependencyProperty
|
OldSizeProperty
Represents the OldSize attached property.
Declaration
public static readonly DependencyProperty OldSizeProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ResizeMode
Gets or sets a value indicating the resizing mode (horizontal, vertical, both) of the animation.
Declaration
public ResizeAnimationResizeMode ResizeMode { get; set; }
Property Value
ResizeAnimationResizeMode
|
Methods
CreateAnimationOverride(FrameworkElement, FrameworkElement)
Creates the slide 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
GetCurrentSize(DependencyObject)
Gets the CurrentSize for the given DependencyObject, normally a UIElement.
Declaration
public static Size GetCurrentSize(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
Returns
System.Windows.Size
The current size for the object. |
Remarks
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.
GetOldSize(DependencyObject)
Gets the OldSize for the given DependencyObject, normally a UIElement.
Declaration
public static Size GetOldSize(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
Returns
System.Windows.Size
The old size for the object. |
Remarks
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.
SetCurrentSize(DependencyObject, Size)
Sets the CurrentSize attached property to the given DependencyObject, normally a UIElement.
Declaration
public static void SetCurrentSize(DependencyObject obj, Size value)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
System.Windows.Size
value
The current size to assign. |
Remarks
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.
SetOldSize(DependencyObject, Size)
Sets the OldSize attached property to the given DependencyObject, normally a UIElement.
Declaration
public static void SetOldSize(DependencyObject obj, Size value)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
System.Windows.Size
value
The old size to assign. |
Remarks
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.
UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, Object[])
Updates the slide 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.