Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have a tree view contain one parent node and its child nodes. While try to drag and drop one child node to another one popup window must come having the ability to add a new node and then the child nodes which is trying to drag and drop must became the child nodes of the newly added nodes. How it is done in Wpf using c#.
Posted
Updated 14-Oct-14 21:22pm
v2
Comments
Sergey Alexandrovich Kryukov 15-Oct-14 3:19am    
Node of what?
—SA
Sergey Alexandrovich Kryukov 15-Oct-14 3:22am    
What's wrong with just reading original MSDN documentation, overviews and tutorials?
—SA

It's not clear what "nodes" do you mean. If this is a tree view, please see, for example: http://dotnet-experience.blogspot.com/2011/04/wpf-treeview-drag-n-drop.html[^].

More generally, please start here: http://msdn.microsoft.com/en-us/library/ms742859%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
Comments
Member 11122757 15-Oct-14 7:24am    
Thank You Sir.. I just mean that if there is a parent node in a treeview and it have it's childs also. For example: If the parent node be India and its child nodes be kerala, tamil nadu,karnataka etc. If I try to drag drop two child nodes then a popup box must appear with a text box for entering a new node and an add button for which adding that new node to the existing parent node. And the child nodes which we are trying to perform drag drop operation also became the child of the newly added node. I cannot find any proper solution. I am new in this c# .net wpf field. please help me :(
Sergey Alexandrovich Kryukov 15-Oct-14 11:52am    
Then read the articles I referenced thoroughly, as well as referenced information.
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900