Skip to content

Multiselection for Collectionview doesn't works on MacCatalyst #18028

@bastiH96

Description

@bastiH96

Description

I found a report about this issue from november but the ticket got closed and i couldn't comment under it. #11023 (comment)

The issue that happens is, that when I change the SelectionMode="Multiple" of a collectionview I'm only able to select a single item at a time, as if the SelectionMode would have been set to Single.
This issue only happens on macCatalyst. I ran the exact same program on iOs and was able to select multiple items.

Steps to Reproduce

  1. Create .NET MAUI App
  2. copy / paste this collectionview into your MainPage:
<CollectionView
                SelectionMode="Multiple">
                <CollectionView.ItemsSource>
                    <x:Array
                        Type="{x:Type x:String}">
                        <x:String>Apples</x:String>
                        <x:String>Banana</x:String>
                        <x:String>Cherry</x:String>
                    </x:Array>
                </CollectionView.ItemsSource>
                <CollectionView.ItemTemplate>
                    <DataTemplate>
                        <VerticalStackLayout>
                            <Label
                                Text="{Binding .}"/>
                        </VerticalStackLayout>
                    </DataTemplate>
                </CollectionView.ItemTemplate>
            </CollectionView>
  1. Run the project on MacCatalyst and try to select multiple items in the collectionview.

-> you will only be able to select one item at the time, but you are supposed to select multiple items. If you run the exact same code on iOs, Android or Windows, it will work as expacted

Link to public reproduction project repository

No response

Version with bug

7.0.96

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions