ClassRadAnimationManager
Static manager class used for dynamic animations of controls.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public static class RadAnimationManager
Inheritance: objectRadAnimationManager
Fields
AnimationSelectorProperty
Represents the AnimationSelector attached property.
Declaration
public static readonly DependencyProperty AnimationSelectorProperty
Field Value
DependencyProperty
IsAnimationEnabledProperty
Identifies the IsAnimationEnabled attached property.
Declaration
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
public static bool IsGlobalAnimationEnabled { get; set; }
Property Value
SpeedRatio
Gets or sets the global animation speed ration that will be used if no local speed ratio is set.
Methods
CanAnimate(DependencyObject)
Determines whether animation is supported for the specified element.
Declaration
public static bool CanAnimate(DependencyObject target)
Parameters
target
DependencyObject
Returns
GetAnimationSelector(DependencyObject)
Gets the AnimationSelector for the given DependencyObject, normally a control.
Declaration
public static AnimationSelectorBase GetAnimationSelector(DependencyObject obj)
Parameters
obj
DependencyObject
The target animated object, normally a control.
Returns
The animation selector for the object.
GetIsAnimationEnabled(DependencyObject)
Gets a value indicating whether animation is enabled for the given Control.
Declaration
public static bool GetIsAnimationEnabled(DependencyObject obj)
Parameters
obj
DependencyObject
The dependency object for which to check the value, normally a control.
Returns
True if animation is enabled, false otherwise.
IsAnimationRunning(UIElement, RadAnimation)
Determines if the provided animation is running on the specified target.
Declaration
public static bool IsAnimationRunning(UIElement target, RadAnimation animation)
Parameters
target
UIElement
The target of the animation.
animation
The animation to check if it is running or not.
Returns
Returns true if the animation is animating the target and false otherwise.
Play(UIElement, RadAnimation)
Plays the provides animation on the specified target.
Declaration
public static bool Play(UIElement target, RadAnimation animation)
Parameters
target
UIElement
The instance to be animated.
animation
The RadAnimation instance that describes the animation process.
Returns
True if the animation has been successfully executed, false otherwise.
Play(UIElement, RadAnimation, Action)
Plays the provides animation on the specified target.
Declaration
public static bool Play(UIElement target, RadAnimation animation, Action completedCallback)
Parameters
target
UIElement
The instance to be animated.
animation
The RadAnimation instance that describes the animation process.
completedCallback
Optional callback to notify the caller for animation completion.
Returns
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
public static void SetAnimationSelector(DependencyObject obj, AnimationSelectorBase value)
Parameters
obj
DependencyObject
The target animated object, normally a control.
value
The AnimationSelector to assign.
SetIsAnimationEnabled(DependencyObject, bool)
Sets a value indicating whether animation is enabled for the given Control.
Declaration
public static void SetIsAnimationEnabled(DependencyObject obj, bool value)
Parameters
obj
DependencyObject
The dependency object for which to check the value, normally a control.
value
True if animation should be enabled, false otherwise.
Stop(UIElement, RadAnimation)
Stops an animation if it is currently active or filling.
Declaration
public static void Stop(UIElement target, RadAnimation animation)
Parameters
target
UIElement
The control to stop the animation for.
animation
The animation to stop.
StopIfRunning(UIElement, RadAnimation)
Stops an animation if it is currently active or filling.
Declaration
public static void StopIfRunning(UIElement target, RadAnimation animation)
Parameters
target
UIElement
The target that is being animated.
animation
The animation to stop if running.