FontSizeAnimation
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
Initializes a new instance of the FontSizeAnimation class.
public FontSizeAnimation()
Fields
StartFontSizeProperty
DependencyProperty
Represents the StartFontSize attached property.
public static readonly DependencyProperty StartFontSizeProperty
TargetFontSizeProperty
DependencyProperty
Represents the TargetFontSize attached property.
public static readonly DependencyProperty TargetFontSizeProperty
Methods
Gets the StartFontSize for the given DependencyObject, normally a UIElement.
public static double GetStartFontSize(DependencyObject obj)
The target animated object, normally a UIElement.
Returns:The StartFontSize of the given object.
Gets the TargetFontSize for the given DependencyObject, normally a UIElement.
public static double GetTargetFontSize(DependencyObject obj)
The target animated object, normally a UIElement.
Returns:The TargetFontSize of the given object.
Sets the StartFontSize attached property to the given DependencyObject, normally a UIElement.
public static void SetStartFontSize(DependencyObject obj, double value)
The target animated object, normally a UIElement.
valuedoubleThe StartFontSize to assign.
Sets the TargetFontSize attached property to the given DependencyObject, normally a UIElement.
public static void SetTargetFontSize(DependencyObject obj, double value)
The target animated object, normally a UIElement.
valuedoubleThe TargetFontSize to assign.
Updates the 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.