I would like to be able to use a BindlingList of Node as a datasource for the treeview, but I'm unsure of how to set up the properties, Children in Node will contain Children, and so forth.
class
Node
{
public
string
Title;
//DisplayMember
public
string
Value;
//ValueMember
public
bool
IsActive;
//CheckedMember
public
List<Node> Children =
new
List<Node>();
//Children of this node here
public
Node()
{
}
public
Node(
string
title,
string
value,
bool
isActive, List<Node> children)
{
Title = title;
Value = value;
IsActive = isActive;
Children = children;
}
}