There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
TreeView - SelectedItemChanged Event Fired twice when ParentItem gets collapsed
Hi, using the TreeView control within one of my client's project, I noticed something that seems to be a bug. Here is the scenario to reproduce the error:
When a child item of the TreeView is selected and the user collapses the parent item, the item collapsed gets selected. This seems to be an intentional behavior of the TreeView which is kind of logical. However, when this happens, the SelectedItemChanged of
the TreeView gets fired twice. The wierdest thing is that, when it is fired the first time, the SelectedItem of the TreeView is the next TreeViewItem placed at the same level as the TreeViewItem collapsed. The second time the event is fired the SelectedItem
of the TreeView appears to be the TreeViewItem collapsed.
Am I missing something, or is this really a bug of the TreeView ?