Class FontSizeAnimation
Animation used to animate the FontSize of its target element from StartFontSize to TargetFontSize or back depending on the Direction of the animation.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.Animation
Assembly: Telerik.Windows.Controls.dll
Syntax
public class FontSizeAnimation : RadDoubleAnimation
Constructors
FontSizeAnimation()
Initializes a new instance of the FontSizeAnimation class.
Declaration
public FontSizeAnimation()
Fields
StartFontSizeProperty
Represents the StartFontSize attached property.
Declaration
public static readonly DependencyProperty StartFontSizeProperty
Field Value
System.Windows.DependencyProperty
|
TargetFontSizeProperty
Represents the TargetFontSize attached property.
Declaration
public static readonly DependencyProperty TargetFontSizeProperty
Field Value
System.Windows.DependencyProperty
|
Methods
GetStartFontSize(DependencyObject)
Gets the StartFontSize for the given DependencyObject, normally a UIElement.
Declaration
public static double GetStartFontSize(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
Returns
System.Double
The StartFontSize of the given object. |
GetTargetFontSize(DependencyObject)
Gets the TargetFontSize for the given DependencyObject, normally a UIElement.
Declaration
public static double GetTargetFontSize(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
Returns
System.Double
The TargetFontSize of the given object. |
SetStartFontSize(DependencyObject, Double)
Sets the StartFontSize attached property to the given DependencyObject, normally a UIElement.
Declaration
public static void SetStartFontSize(DependencyObject obj, double value)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
System.Double
value
The StartFontSize to assign. |
SetTargetFontSize(DependencyObject, Double)
Sets the TargetFontSize attached property to the given DependencyObject, normally a UIElement.
Declaration
public static void SetTargetFontSize(DependencyObject obj, double value)
Parameters
System.Windows.DependencyObject
obj
The target animated object, normally a UIElement. |
System.Double
value
The TargetFontSize to assign. |
UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, Object[])
Updates the 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.