![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | TreeView, TreeViewItem hi, how can i loose a TreeViewItem from its parent TreeViewItem, so that i can shift it to another parent? thanks, k. |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: TreeView, TreeViewItem I think what you'd have to do is: 1. Loop through your TreeView and find the item you want to detach/remove and save it to a variable (for example: tviSavedItem). 2. Then remove it from it's current parent's Items collection. 3. Loop through the TreeView again to find the new parent. 4. Then add tviSavedItem to your new parent's Item collection using the Item.Add method. "knallkopf66" wrote: > hi, > > how can i loose a TreeViewItem from its parent TreeViewItem, so that i > can shift it to another parent? > > thanks, k. > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to get the Parent of a TreeViewItem in a treeview when using HierchicalDataTemplate ? | Pon | Avalon | 1 | 04-05-2007 03:16 AM |
| Databound treeview and selectedItem cast to Treeviewitem | cheesetarmac | Avalon | 2 | 11-14-2006 03:43 AM |
| Drag and Drop Treeview Items between 2 Treeview | ProjectGKR | Avalon | 3 | 03-14-2006 07:29 AM |
| Remove / replace the collapser on a TreeViewItem? | Chris Sammis | Avalon | 3 | 03-10-2006 04:20 AM |
| Select hidden treeviewitem in databound treeview | RyanLeeSchneider | Avalon | 0 | 01-31-2006 06:59 AM |