Class
RadAnimationManager

Static manager class used for dynamic animations of controls.

Definition

Namespace:Telerik.Core

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public static class RadAnimationManager

Inheritance: objectRadAnimationManager

Fields

AnimationSelectorProperty

Represents the AnimationSelector attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty AnimationSelectorProperty

Field Value

DependencyProperty

IsAnimationEnabledProperty

Identifies the IsAnimationEnabled attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsAnimationEnabledProperty

Field Value

DependencyProperty

Properties

IsGlobalAnimationEnabled

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

Declaration

cs-api-definition
public static bool IsGlobalAnimationEnabled { get; set; }

Property Value

bool

SpeedRatio

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

Declaration

cs-api-definition
public static double SpeedRatio { get; set; }

Property Value

double

Methods

CanAnimate(DependencyObject)

Determines whether animation is supported for the specified element.

Declaration

cs-api-definition
public static bool CanAnimate(DependencyObject target)

Parameters

target

DependencyObject

Returns

bool

GetAnimationSelector(DependencyObject)

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

Declaration

cs-api-definition
public static AnimationSelectorBase GetAnimationSelector(DependencyObject obj)

Parameters

obj

DependencyObject

The target animated object, normally a control.

Returns

AnimationSelectorBase

The animation selector for the object.

GetIsAnimationEnabled(DependencyObject)

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

Declaration

cs-api-definition
public static bool GetIsAnimationEnabled(DependencyObject obj)

Parameters

obj

DependencyObject

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

Returns

bool

True if animation is enabled, false otherwise.

IsAnimationRunning(UIElement, RadAnimation)

Determines if the provided animation is running on the specified target.

Declaration

cs-api-definition
public static bool IsAnimationRunning(UIElement target, RadAnimation animation)

Parameters

target

UIElement

The target of the animation.

animation

RadAnimation

The animation to check if it is running or not.

Returns

bool

Returns true if the animation is animating the target and false otherwise.

Play(UIElement, RadAnimation)

Plays the provides animation on the specified target.

Declaration

cs-api-definition
public static bool Play(UIElement target, RadAnimation animation)

Parameters

target

UIElement

The instance to be animated.

animation

RadAnimation

The RadAnimation instance that describes the animation process.

Returns

bool

True if the animation has been successfully executed, false otherwise.

Play(UIElement, RadAnimation, Action)

Plays the provides animation on the specified target.

Declaration

cs-api-definition
public static bool Play(UIElement target, RadAnimation animation, Action completedCallback)

Parameters

target

UIElement

The instance to be animated.

animation

RadAnimation

The RadAnimation instance that describes the animation process.

completedCallback

Action

Optional callback to notify the caller for animation completion.

Returns

bool

True if the animation has been successfully executed, false otherwise.

SetAnimationSelector(DependencyObject, AnimationSelectorBase)

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

Declaration

cs-api-definition
public static void SetAnimationSelector(DependencyObject obj, AnimationSelectorBase value)

Parameters

obj

DependencyObject

The target animated object, normally a control.

value

AnimationSelectorBase

The AnimationSelector to assign.

SetIsAnimationEnabled(DependencyObject, bool)

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

Declaration

cs-api-definition
public static void SetIsAnimationEnabled(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

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

value

bool

True if animation should be enabled, false otherwise.

Stop(UIElement, RadAnimation)

Stops an animation if it is currently active or filling.

Declaration

cs-api-definition
public static void Stop(UIElement target, RadAnimation animation)

Parameters

target

UIElement

The control to stop the animation for.

animation

RadAnimation

The animation to stop.

StopIfRunning(UIElement, RadAnimation)

Stops an animation if it is currently active or filling.

Declaration

cs-api-definition
public static void StopIfRunning(UIElement target, RadAnimation animation)

Parameters

target

UIElement

The target that is being animated.

animation

RadAnimation

The animation to stop if running.