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

Static manager class used for dynamic animations of controls.

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public static class AnimationManager

Inheritance: objectAnimationManager

Fields

AnimationSelectorProperty

DependencyProperty

Represents the AnimationSelector attached property.

C#
public static readonly DependencyProperty AnimationSelectorProperty

IsAnimationEnabledProperty

DependencyProperty

Identifies the IsAnimationEnabled attached property.

C#
public static readonly DependencyProperty IsAnimationEnabledProperty

Properties

Gets or sets the global animation speed ration that will be used if no local speed ratio is set.

C#
public static double AnimationSpeedRatio { get; set; }

Gets or sets a value indicating whether the Animation for the whole application will be enabled. This value overrides all other properties.

C#
public static bool IsGlobalAnimationEnabled { get; set; }

Methods

Gets the AnimationSelector for the given DependencyObject, normally a control.

C#
public static AnimationSelectorBase GetAnimationSelector(DependencyObject obj)
Parameters:objDependencyObject

The target animated object, normally a control.

Returns:

AnimationSelectorBase

The animation selector for the object.

Gets a value indicating whether animation is enabled for the given Control.

C#
public static bool GetIsAnimationEnabled(DependencyObject obj)
Parameters:objDependencyObject

The dependency object for which to check the value, normally a control.

Returns:

bool

True if animation is enabled, false otherwise.

Plays an animation for the given control and invokes the callback on completion.

C#
public static bool Play(FrameworkElement target, string animationName, Action completeCallback, bool animateSelf, params object[] args)
Parameters:targetFrameworkElement

The control for which to play the animation.

animationNamestring

The name of the animation.

completeCallbackAction

The callback to be called. The callback is always called.

animateSelfbool

Specify if animation is applied on the target. If false, animation is applied on a child of target.

argsobject[]

Optional parameters for the animation, can be provided by the control.

Returns:

bool

True if an animation actually played, false otherwise.

Plays an animation for the given control and invokes the callback on completion.

C#
public static bool Play(FrameworkElement target, string animationName, Action completeCallback, params object[] args)
Parameters:targetFrameworkElement

The control for which to play the animation.

animationNamestring

The name of the animation.

completeCallbackAction

The callback to be called. The callback is always called.

argsobject[]

Optional parameters for the animation, can be provided by the control.

Returns:

bool

True if an animation actually played, false otherwise.

Plays an animation for the given control and invokes the callback on completion.

C#
public static bool Play(FrameworkElement target, string animationName, bool animateSelf)
Parameters:targetFrameworkElement

The control for which to play the animation.

animationNamestring

The name of the animation.

animateSelfbool

Specify if animation is applied on the target. If false, animation is applied on a child of target.

Returns:

bool

True if an animation actually played, false otherwise.

Plays an animation for the given control and invokes the callback on completion.

C#
public static bool Play(FrameworkElement target, string animationName)
Parameters:targetFrameworkElement

The control for which to play the animation.

animationNamestring

The name of the animation.

Returns:

bool

True if an animation actually played, false otherwise.

Sets the Animation selector for the given DependencyObject, normally a Control.

C#
public static void SetAnimationSelector(DependencyObject obj, AnimationSelectorBase value)
Parameters:objDependencyObject

The target animated object, normally a control.

valueAnimationSelectorBase

The AnimationSelector to assign.

Sets a value indicating whether animation is enabled for the given Control.

C#
public static void SetIsAnimationEnabled(DependencyObject obj, bool value)
Parameters:objDependencyObject

The dependency object for which to check the value, normally a control.

valuebool

True if animation should be enabled, false otherwise.

Stops an animation if it is currently active or filling.

C#
public static void Stop(FrameworkElement target, string animationName, bool animateSelf)
Parameters:targetFrameworkElement

The control to stop the animation for.

animationNamestring

The name of the animation to stop.

animateSelfbool

Specify if animation is applied on the target. If false, animation is applied on a child of target.

Stops an animation if it is currently active or filling.

C#
public static void Stop(FrameworkElement target, string animationName)
Parameters:targetFrameworkElement

The control to stop the animation for.

animationNamestring

The name of the animation to stop.

Stops an animation if it is currently active or filling.

C#
public static void StopIfRunning(FrameworkElement target, string animationName, bool animateSelf)
Parameters:targetFrameworkElement

The control to stop the animation for.

animationNamestring

The name of the animation to stop.

animateSelfbool

Specify if animation is applied on the target. If false, animation is applied on a child of target.

Stops an animation if it is currently active or filling.

C#
public static void StopIfRunning(FrameworkElement target, string animationName)
Parameters:targetFrameworkElement

The control to stop the animation for.

animationNamestring

The name of the animation to stop.