New to Telerik UI for WPFStart a free 30-day trial

Animation used to animate the FontSize of its target element from StartFontSize to TargetFontSize or back depending on the Direction of the animation.

Definition

Constructors

Initializes a new instance of the FontSizeAnimation class.

C#
public FontSizeAnimation()

Fields

StartFontSizeProperty

DependencyProperty

Represents the StartFontSize attached property.

C#
public static readonly DependencyProperty StartFontSizeProperty

TargetFontSizeProperty

DependencyProperty

Represents the TargetFontSize attached property.

C#
public static readonly DependencyProperty TargetFontSizeProperty

Methods

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

C#
public static double GetStartFontSize(DependencyObject obj)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

Returns:

double

The StartFontSize of the given object.

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

C#
public static double GetTargetFontSize(DependencyObject obj)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

Returns:

double

The TargetFontSize of the given object.

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

C#
public static void SetStartFontSize(DependencyObject obj, double value)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

valuedouble

The StartFontSize to assign.

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

C#
public static void SetTargetFontSize(DependencyObject obj, double value)
Parameters:objDependencyObject

The target animated object, normally a UIElement.

valuedouble

The TargetFontSize to assign.

Updates the animation.

C#
protected override void UpdateAnimationOverride(FrameworkElement control, Storyboard storyboard, FrameworkElement target, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

targetFrameworkElement

The targeted element of the animation.

argsobject[]

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.