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

Fades realized tree-node visuals in on expansion and out on collapse, updating the tree layout after collapse.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TreeExpandAnimationOpacity : TreeExpandAnimation

Inheritance: objectTreeExpandAnimationTreeExpandAnimationOpacity

Inherited Members TreeExpandAnimation.UpdateViewOnExpandChanged(RadTreeNode)TreeExpandAnimation.GetAssociatedNodes(RadTreeNode)TreeExpandAnimation.TreeViewElement

Constructors

Creates an opacity animation associated with the specified tree element.

C#
public TreeExpandAnimationOpacity(RadTreeViewElement treeView)
Parameters:treeViewRadTreeViewElement

The tree element whose node visuals are animated.

Methods

Fades realized descendant elements to transparent, then updates the collapsed view when the final fade completes. A node without children is updated immediately.

C#
public override void Collapse(RadTreeNode node)
Parameters:nodeRadTreeNode

The node being collapsed.

Overrides: TreeExpandAnimation.Collapse(RadTreeNode)

Updates the expanded view, then fades realized descendant elements from transparent to opaque. Nodes without children only require the view update.

C#
public override void Expand(RadTreeNode node)
Parameters:nodeRadTreeNode

The node being expanded.

Overrides: TreeExpandAnimation.Expand(RadTreeNode)