microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.28k stars 675 forks source link

Proposal: Make `SelectedItems` for `ListView` and `TreeView` available in XAML #9413

Open karmeye opened 6 months ago

karmeye commented 6 months ago

Proposal: Make SelectedItems for ListView, TreeView, available in XAML

In this way one can handle multiple selections via binding: SelectedItems="{x:Bind ViewModel.SelectedItems, Mode=TwoWay}", just as is possible now with SelectedItem.

Summary

Rationale

Scope

Capability Priority
This proposal will allow end users to accomplish binding Should

Important Notes

Open Questions

I don't know whether there's a technical or design reason for not including it. But it makes sense to me since SelectedItem (SelectedItemProperty) is there so why not also have support for multiple selection?

github-actions[bot] commented 6 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.