Converts custom node items to a collection of DataTreeGridItem objects (as required by Items properties of DataTreeGrid component). Use *Member properties of the converter instance to control which properties of custom items are bound to which DataTreeGridItem properties (undefined/null Member values indicate properties that are not bound and default values are automatically generated for these properties on DataTreeGridItem objects instead). The converter uses reflection to retreive the appropriate property values from your custom data objects and apply them to the corresponding DataTreeGridItem instances. Referred member properties of custom items should be public and accessible for reading and optionally writing (property paths are not supported). Set UpdateSourceOnTargetChanges and/or UpdateTargetOnSourceChanges properties to true/false to indicate the directions of internally managed change updates. Note that UpdateTargetOnSourceChanges works only when the custom data source implements INotifyCollectionChanged interface and/or custom data objects implement INotifyPropertyChanged interface. When UpdateSourceOnTargetChanges is set new objects that need to be created are generated by Activator.CreateInstance internal calls, and therefore they need to provide public access to their parameterless constructor (or their default constructor).

Namespace:  DlhSoft.Windows.Controls
Assembly:  DlhSoft.HierarchicalData.LightWPF.Controls (in DlhSoft.HierarchicalData.LightWPF.Controls.dll)

Syntax

C#
public class NodeItemsConverter : IValueConverter
Visual Basic (Declaration)
Public Class NodeItemsConverter _
	Implements IValueConverter

Inheritance Hierarchy

System..::..Object
  DlhSoft.Windows.Controls..::..NodeItemsConverter

See Also