Wednesday, July 20, 2011 6:33 AM
Hi, I have a listview which is populated with a list of strings, I have implemented drag/drop functionality so that these strings can be dragged from the listbox to a treeview control. My question/problem is removing an item from the treeview. To do this I need to get access to the datasource or collection that is generated from the codeplex drag/drop plugin that I have used to implement the drag drop functionality between the controls. Does anyone have any ideas how to do this?
Wednesday, July 20, 2011 9:33 AM
Try naming the treeview and ondrop, step into the code to find the collection that the treeview is bound to by investigating the treeview's datacontext in the watch window.
Friday, July 22, 2011 1:05 AM
If you use binding, just delete the object entity from your datasource.