TreeView selection issues #15638
Labels
area/winui
Categorizes an issue or PR as relevant to WinUI
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
waiting-for-winui
Denotes an issue which requires support for analogous feature in WinUI.
Current behavior
TreeView has some quirks with selection when
SelectionMode
is set toMultiple
when adding items to theSelectedItems
collection:TreeViewItem.IsSelected
properties are set to true but they're not.SelectionChanged
event is not fired.Expected behavior
The 3 selection points of the
TreeView
should all be synced, and theSelectionChanged
should be raised once (not less but not more) for any selection change to any one of them.How to reproduce it (as minimally and precisely as possible)
https://github.com/weitzhandler/TreeViewSelectionRepro
Workaround
Traverse entire tree and explicitly set each TreeViewItem.IsSelection individually to desired selection value.
Works on UWP/WinUI
No
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
This is a WinUI issue and has been reported there as well:
microsoft/microsoft-ui-xaml#125
microsoft/microsoft-ui-xaml#5738
The text was updated successfully, but these errors were encountered: