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

Animation for the TreeView Expand/Collapse.

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class TreeViewExpandCollapseAnimation : RadAnimation

Inheritance: objectRadAnimationTreeViewExpandCollapseAnimation

Derived Classes: PanelBarExpandCollapseAnimation

Inherited Members RadAnimation.AnimationNameRadAnimation.RepeatBehaviorRadAnimation.AutoReverseRadAnimation.SpeedRatio

Constructors

Initializes a new instance of the TreeViewExpandCollapseAnimation class.

C#
public TreeViewExpandCollapseAnimation()

Properties

Gets or sets the name of the element that should be animated.

C#
public string AnimationTargetName { get; set; }

Gets or sets a value indicating whether the direction of the animation.

C#
public AnimationDirection Direction { get; set; }

Gets or sets the duration of the easing animation.

C#
public TimeSpan Duration { get; set; }
Property Value:

The duration.

EasingFunction

IEasingFunction

Gets or sets the easing function.

C#
public IEasingFunction EasingFunction { get; set; }
Property Value:

The easing function.

Gets or sets the name of the element that should be animated. Using this property causes generation of non compiling code by Blend.

C#
[Obsolete("This property will be removed because confuses the XAML parser. Use AnimationTargetName instead.", false)]
public string TargetName { get; set; }

Methods

Creates the TreeView animation.

C#
public override Storyboard CreateAnimation(FrameworkElement control)
Parameters:controlFrameworkElement

The control for which the animation is needed.

Returns:

Storyboard

The newly created animation.

Overrides: RadAnimation.CreateAnimation(FrameworkElement)

Updates the TreeViewAnimation.

C#
public override void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)
Parameters:controlFrameworkElement

The control for which the animation needs to be updated.

storyboardStoryboard

Storyboard that needs to be updated.

argsobject[]

Optional arguments that the animation needs, can be provided by the control.

Overrides: RadAnimation.UpdateAnimation(FrameworkElement, Storyboard, params object[])