ClassFontSizeAnimation
Animation used to animate the FontSize of its target element from StartFontSize to TargetFontSize or back depending on the Direction of the animation.
Definition
Namespace:Telerik.Windows.Controls.Animation
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class FontSizeAnimation : RadDoubleAnimation
Inheritance: objectRadAnimationBaseAnimationOrientedAnimationRadDoubleAnimationFontSizeAnimation
Inherited Members
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
DependencyProperty
TargetFontSizeProperty
Represents the TargetFontSize attached property.
Declaration
public static readonly DependencyProperty TargetFontSizeProperty
Field Value
DependencyProperty
Methods
GetStartFontSize(DependencyObject)
Gets the StartFontSize for the given DependencyObject, normally a UIElement.
Declaration
public static double GetStartFontSize(DependencyObject obj)
Parameters
obj
DependencyObject
The target animated object, normally a UIElement.
Returns
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
obj
DependencyObject
The target animated object, normally a UIElement.
Returns
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
obj
DependencyObject
The target animated object, normally a UIElement.
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
obj
DependencyObject
The target animated object, normally a UIElement.
value
The TargetFontSize to assign.
UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])
Updates the animation.
Declaration
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters
control
FrameworkElement
The control for which the animation needs to be updated.
storyboard
Storyboard
Storyboard that needs to be updated.
target
FrameworkElement
The targeted element of the animation.
args
object[]
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.