Class
TreeViewExpandCollapseAnimation

Animation for the TreeView Expand/Collapse.

Definition

Namespace:Telerik.Windows.Controls.Animation

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class TreeViewExpandCollapseAnimation : RadAnimation

Inheritance: objectRadAnimationTreeViewExpandCollapseAnimation

Derived Classes: PanelBarExpandCollapseAnimation

Inherited Members RadAnimation.AnimationNameRadAnimation.RepeatBehaviorRadAnimation.SpeedRatio

Constructors

TreeViewExpandCollapseAnimation()

Initializes a new instance of the TreeViewExpandCollapseAnimation class.

Declaration

cs-api-definition
public TreeViewExpandCollapseAnimation()

Properties

AnimationTargetName

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

Declaration

cs-api-definition
public string AnimationTargetName { get; set; }

Property Value

string

Direction

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

Declaration

cs-api-definition
public AnimationDirection Direction { get; set; }

Property Value

AnimationDirection

Duration

Gets or sets the duration of the easing animation.

Declaration

cs-api-definition
public TimeSpan Duration { get; set; }

Property Value

TimeSpan

The duration.

EasingFunction

Gets or sets the easing function.

Declaration

cs-api-definition
public IEasingFunction EasingFunction { get; set; }

Property Value

IEasingFunction

The easing function.

TargetName

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

Declaration

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

Property Value

string

Methods

CreateAnimation(FrameworkElement)

Creates the TreeView animation.

Declaration

cs-api-definition
public override Storyboard CreateAnimation(FrameworkElement control)

Parameters

control

FrameworkElement

The control for which the animation is needed.

Returns

Storyboard

The newly created animation.

Overrides RadAnimation.CreateAnimation(FrameworkElement)

UpdateAnimation(FrameworkElement, Storyboard, params object[])

Updates the TreeViewAnimation.

Declaration

cs-api-definition
public override void UpdateAnimation(FrameworkElement control, Storyboard storyboard, params object[] args)

Parameters

control

FrameworkElement

The control for which the animation needs to be updated.

storyboard

Storyboard

Storyboard that needs to be updated.

args

object[]

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

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