-
Notifications
You must be signed in to change notification settings - Fork 1.9k
CollectionView SelectionMode SelectionMode="Multiple" Not working #5625
Comments
#5352 says Android and IOS, what with UWP ? @adrianknight89 |
Not sure if @hartez is still updating https://gist.github.com/hartez/7d0edd4182dbc7de65cebc6c67f72e14, but I think the change was implemented only for Android and iOS for now. |
This should be in 4.0.0-pre8. Thanks! |
@samhouts I've just tried 4.0.0-pre8 and it is still not working, |
@psp589 We're currently focusing on implementing all features for Android and iOS before moving on to UWP. We'll take a look at Android and see what's missing. Thanks! |
@samhouts I'm working with both Android and UWP, should I add then different issues when reporting ? one for Android and one for UWP ? Should I add for this issue, a different one for UWP ? |
@psp589 No need to report separate issues. Things that are not implemented in UWP yet will be tracked on the main ticket. Thanks! |
@psp589 To make this easier to reproduce, can you please attach a small project that demonstrates this issue? Thanks! |
@samhouts see https://github.com/psp589/XamarinFormsIssuesReproduction, last section marked as "Issue #5625" |
To expand on this issue
What helped me was creating a simple bridge behavior that proxied I believe the issue here is that the instance of the
the PropertyChanged is indeed invoked, but that does not trigger the system to update bindings.
|
Nothing will happened PR #6629 should fixed this issue! |
Hello, Can someone take a look on this again? I'm stuck trying to get this working on android. I have the screen reader enabled. Cheers, |
@francipvb Since this was closed so long ago and since you're using a screen reader, I would suggest opening a new issue. |
Well, this explains why two way binding is not working in Multiple (at least in Android that I am testing in). I guess I am going to have to implement my own Multiple using Single. Why is this issue closed if it hasn't been fixed? |
So even though two way binding is not working in Multiple I have been able to get multiple selection to work in my MVVM app. The trick is to declare and instantiate the list that is bound to SelectedItems with a type of object and cast it later:
In constructor:
bound to SelectionChangedCommand - cast to target class messageItem:
|
Works like a charm, thanks |
Description
I can't get to work the selection multiple in CollectionView, I can't select more than one item, also I didn't see a SelectedItems property, only SelectedItem
Steps to Reproduce
Having this XAML
With this data in the Model
Expected Behavior
Could select more than 1 item
Actual Behavior
is not possible
Basic Information
The text was updated successfully, but these errors were encountered: