Adds a top-level node to the grid. The node data is managed by the grid.
Namespace:
Mindscape.WpfElementsAssembly: Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)
Syntax
C# |
---|
public Node AddNode( string caption, Object value, Object inPlaceEditorKey ) |
Visual Basic (Declaration) |
---|
Public Function AddNode ( _ caption As String, _ value As Object, _ inPlaceEditorKey As Object _ ) As Node |
Parameters
- caption
- Type: System..::.String
The caption or name of the node.
- value
- Type: System..::.Object
The initial value of the node.
- inPlaceEditorKey
- Type: System..::.Object
A resource key for the DataTemplate 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.