|
NodeExpandableTextBox node control
Saturday, 12 September 2009
NodeExpandableTextBox allows you to show a text title if a node isn`t selected, focused, or under the mouse cursor, and the title and additional text description if the node is selected, focused, or under the mouse cursor. This allows you to not overload the treeview with information, to be intuitive and understandable, while at the same time to provide more information on the selected node.
Note that the Options.Node.AutoNodeHeight treeview option must be enabled to show an expandable node control. The main elements of the NodeExpandableTextBox node control are a title and description:
The NodeExpandableTextBox may be in three states:
Example: NodeExpandableTextBox name = new NodeExpandableTextBox(); name.AttachTo(tree); // add node to the treeview. NodeWithDescription node = new NodeWithDescription(); node.Text = "Node title"; node.Description = "Node description"; node.AttachTo(tree); // prepare treeview to auto–expanding. tree.Options.Node.AutoNodeHeight = true;
|
|