| Visual Basic (Declaration) | |
|---|---|
Public Property ActiveNode As UltraTreeNode | |
| C# | |
|---|---|
public UltraTreeNode ActiveNode {get; set;} | |
There can only be one ActiveNode in the UltraTree at any time.
The ActiveNode will take on the ActiveNodeAppearance.
Note: When the ActiveNode is about to change, it triggers the firing of the BeforeActivate event, which can be canceled to prevent the node from becoming the new ActiveNode.
The following sample code initializes various properties on an UltraWinTree control and illustrates how to populate the tree.
| Visual Basic | Copy Code |
|---|---|
Imports Infragistics.Win.UltraWinTree | |
| C# | Copy Code |
|---|---|
using Infragistics.Win.UltraWinTree; | |
