To get the parent node of a treeview in the TreeViewDragDropTarget in Silverlight -
After
I have created a TreeViewDragDropTarget like this,
& Lt; / Common: HierarchicalDataTemplate & gt; & Lt; / ControlsToolKit: TreeViewDragDropTarget.Resources & gt; & Lt; Control: TreeView X: Name = "MainTreeView" BorderThickness = "1" ItemTemplate = "{StaticResource hierarchicalTemplate}" background = "transparent" cursor = "hand" BorderBrush = "{x: null}" VerticalAlignment = "top" /> ; & Lt; / ControlToolKit: TreeViewDragDropTarget & gt; What I am doing is leaving some text in the preview node. I want to find the original node of drop target. How do I do this?
after this post check this post. You must use the drop-event of the tree view control.
Comments
Post a Comment