Timeline for Getting Item in hierarchical TreeView
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 28 at 20:58 | comment | added | bigcrazyal |
To keep track of this in one of my projects, I bound a property to the IsSelected field for TreeViewItem . When a IsSelected is called on an item in my HierarchicalTree, I have the TreeViewItem trigger the owner of the TreeView to iterate through all of the hosted items to find the one with the property bound to IsSelected set to true. It's a workaround but it's possible to keep track of the current selection.
|
|
Aug 28 at 11:59 | history | edited | Michał Turczyn | CC BY-SA 4.0 |
edited body
|
Aug 28 at 11:53 | vote | accept | Igor Goblin | ||
Aug 28 at 10:10 | review | Close votes | |||
Sep 1 at 0:03 | |||||
Aug 28 at 9:39 | comment | added | Igor Goblin | I'm doing a kind of treeview editor. So I need to have possibility to rename a node, delete a node etc. | |
Aug 28 at 9:29 | comment | added | Sinatr |
It's not clear what you have at hand, but maybe (treeViewItem.DataContext as ItemViewModel).Text will do? Who will be changing Text and why?
|
|
Aug 28 at 9:16 | answer | added | Michał Turczyn | timeline score: -1 | |
Aug 28 at 9:08 | comment | added | Michał Turczyn | Maybe this post could help? | |
S Aug 28 at 8:53 | review | First questions | |||
Aug 28 at 12:01 | |||||
S Aug 28 at 8:53 | history | asked | Igor Goblin | CC BY-SA 4.0 | created from wizard |