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.

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class FontSizeAnimation : RadDoubleAnimation

Inheritance: objectRadAnimationBaseAnimationOrientedAnimationRadDoubleAnimationFontSizeAnimation

Inherited Members RadDoubleAnimation.CreateAnimationOverride(FrameworkElement, FrameworkElement)RadDoubleAnimation.StartValueRadDoubleAnimation.TargetValueRadDoubleAnimation.PropertyNameOrientedAnimation.GetValueDependingOnDirection<T>(T, T)OrientedAnimation.DirectionBaseAnimation.CreateAnimation(FrameworkElement)BaseAnimation.UpdateAnimation(FrameworkElement, Storyboard, params object[])BaseAnimation.EasingBaseAnimation.DurationBaseAnimation.TargetElementNameRadAnimation.AnimationNameRadAnimation.RepeatBehaviorRadAnimation.SpeedRatio

Constructors

FontSizeAnimation()

Initializes a new instance of the FontSizeAnimation class.

Declaration

cs-api-definition
public FontSizeAnimation()

Fields

StartFontSizeProperty

Represents the StartFontSize attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartFontSizeProperty

Field Value

DependencyProperty

TargetFontSizeProperty

Represents the TargetFontSize attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty TargetFontSizeProperty

Field Value

DependencyProperty

Methods

GetStartFontSize(DependencyObject)

Gets the StartFontSize for the given DependencyObject, normally a UIElement.

Declaration

cs-api-definition
public static double GetStartFontSize(DependencyObject obj)

Parameters

obj

DependencyObject

The target animated object, normally a UIElement.

Returns

double

The StartFontSize of the given object.

GetTargetFontSize(DependencyObject)

Gets the TargetFontSize for the given DependencyObject, normally a UIElement.

Declaration

cs-api-definition
public static double GetTargetFontSize(DependencyObject obj)

Parameters

obj

DependencyObject

The target animated object, normally a UIElement.

Returns

double

The TargetFontSize of the given object.

SetStartFontSize(DependencyObject, double)

Sets the StartFontSize attached property to the given DependencyObject, normally a UIElement.

Declaration

cs-api-definition
public static void SetStartFontSize(DependencyObject obj, double value)

Parameters

obj

DependencyObject

The target animated object, normally a UIElement.

value

double

The StartFontSize to assign.

SetTargetFontSize(DependencyObject, double)

Sets the TargetFontSize attached property to the given DependencyObject, normally a UIElement.

Declaration

cs-api-definition
public static void SetTargetFontSize(DependencyObject obj, double value)

Parameters

obj

DependencyObject

The target animated object, normally a UIElement.

value

double

The TargetFontSize to assign.

UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

Updates the animation.

Declaration

cs-api-definition
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 RadDoubleAnimation.UpdateAnimationOverride(FrameworkElement, Storyboard, FrameworkElement, params object[])

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.