NodeExpandableControlContainer

The NodeExpandableControlContainer node control is identical to the NodeControlContainer node control, but displays a bound control in its expandable area. To bind a node control to a container, use the ContainerFieldName property, as shown below.

// Create node control.
NodeExpandableControlContainer nc = new NodeExpandableControlContainer();
nc.ContainerFieldName = "Container";
nc.AttachTo(tree);

// Add node.
NodeWithControl node = new NodeWithControl("Node title");
// Create and attach the button control.
Button btn = new Button();
btn.Text = "Test";
node.Container = new ControlContainer(btn);
node.AttachTo(tree);

tree.Options.Node.AutoNodeHeight = true;
// Optional option.
tree.Options.Selection.HoverStyle = eHoverStyle.SoftSelect;
' Create node control.
Dim nc As New NodeExpandableControlContainer()
nc.ContainerFieldName = "Container"
nc.AttachTo(tree)

' Add node.
Dim node As New NodeWithControl("Node title")
' Create and attach the button control.
Dim btn As New Button()
btn.Text = "Test"
node.Container = New ControlContainer(btn)
node.AttachTo(tree)

tree.Options.Node.AutoNodeHeight = True
' Optional option.
tree.Options.Selection.HoverStyle = eHoverStyle.SoftSelect