-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TreeView SelectedItems is always zero if SelectionMode is SingleItem #124
Comments
Yes, and you can't even manually add nodes to the SelectedItems collection. It is always empty. (You seem to be able to manually add them when SelectionMode = Multiple ) |
Thanks for the report! Our team is on holiday break right now but we'll investigate when we return. |
@kaiguo can you take a look at this when you're done with 19H1 bugs? |
@jevansaks I saw there's a related issue #197. Should we just add a SelectedNode property to be consistent with ListView? |
Yeah, that was my thinking. Now technically the other issue was asking for a SelectedItem not SelectedNode. Should we also be offering a SelectedItem and SelectedItems properties to help with the databinding scenarios? |
Yeah, I'll add SelectedItem and SelectedItems too. |
We'd need SelectedItem as well as SelectedNode. @kaiguo - I believe you are in the process of adding both. |
Yep, here’s the PR I just opened #243
|
Great Progress! Thanks @kaiguo |
🎉This issue was addressed in #243, which has now been successfully released as Handy links: |
May i ask how can i apply the new version to a uwp project? It seems this problem still exist in UWP (6.2.12) |
Download and import our Nuget package into your project! We have instructions here: https://github.com/microsoft/microsoft-ui-xaml#using-winui |
If I have a TreeView, if it's set to SingleItem for it's selection mode, than it's SelectedItems is always zero, even when I clearly have something selected.
The text was updated successfully, but these errors were encountered: