Adds a top-level node to the grid. The node data is managed by the grid.

Namespace:  Mindscape.WpfElements
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public Node AddNode(
	string caption,
	Object value,
	DataTemplate inPlaceEditorTemplate
)
Visual Basic (Declaration)
Public Function AddNode ( _
	caption As String, _
	value As Object, _
	inPlaceEditorTemplate As DataTemplate _
) As Node

Parameters

caption
Type: System..::.String
The caption or name of the node.
value
Type: System..::.Object
The initial value of the node.
inPlaceEditorTemplate
Type: System.Windows..::.DataTemplate
A DataTemplate specifying the template to be used for presenting and editing the node value.

Return Value

The Node object added to the grid.

Remarks

The node value will be presented to the user using the data template specified. To support editing, the data template must accept user input and support two-way binding. The property to which the data template should bind is called Value.

See Also