To restrict the drag drop of parent node into another parent get the dragged treeview item and TargetDropItem using “DragStart” and “DragEnd” events respectively. In DragEnd event compare the ParentItemsControl of dragged item and TargetDropItem. If both the node are equal cancel the event.
The following screenshot illustrates the output of the above code example
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|