I have created a gotdotnet workspace that currently contains a single project.
This TreeView is closely related to the System.Windows.Forms.TreeView with a few extra’s:
1. When right-clicking a node AND a context menu has been assigned to the treeview the node gets selected.
This way you can find out on what node the context menu has been triggered.
This way you can find out on what node the context menu has been triggered.
2. When AllowDrop has been enabled, dragging and dropping of nodes is available.
– During dragging the ValidateTargetNode event is triggered so the validity of the node as the new parent of the node being dragged can be influenced
– During drop the NodeDropping event allows the cancellation of the drop.
– During dragging the ValidateTargetNode event is triggered so the validity of the node as the new parent of the node being dragged can be influenced
– During drop the NodeDropping event allows the cancellation of the drop.
Enjoy (or even contribute!)