New to Telerik UI for WinForms? Start a free 30-day trial

Provides hooks and helpers for animating the visual changes caused by expanding or collapsing a tree node.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public abstract class TreeExpandAnimation

Inheritance: objectTreeExpandAnimation

Derived Classes: TreeExpandAnimationOpacity

Constructors

Initializes the animation with the tree element whose rows and layout it updates.

C#
public TreeExpandAnimation(RadTreeViewElement treeViewElement)
Parameters:treeViewElementRadTreeViewElement

The tree element associated with this animation.

Properties

Gets the tree element associated with this animation.

C#
public RadTreeViewElement TreeViewElement { get; }

Methods

Animates the visual descendants of a collapsed node.

C#
public abstract void Collapse(RadTreeNode treeNode)
Parameters:treeNodeRadTreeNode

The node whose collapse is being animated.

Animates the visual descendants of an expanded node.

C#
public abstract void Expand(RadTreeNode treeNode)
Parameters:treeNodeRadTreeNode

The node whose expansion is being animated.

Gets the currently realized visual elements that represent descendants of the specified node.

C#
protected List<TreeNodeElement> GetAssociatedNodes(RadTreeNode node)
Parameters:nodeRadTreeNode

The ancestor node whose visual descendants are requested.

Returns:

List<TreeNodeElement>

The realized descendant elements in the tree view's current visual collection.

Applies the node's expanded-state change to the tree view and refreshes its layout.

C#
protected void UpdateViewOnExpandChanged(RadTreeNode node)
Parameters:nodeRadTreeNode

The node whose expanded state changed.