dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

CollectionView with IsGrouped="True" - RemainingItemsThresholdReachedCommand not Firing #25889

Open snufffgit opened 6 days ago

snufffgit commented 6 days ago

Description

I Have a Grouped CollectionView, RemainingItemsThresholdReachedCommand is not firing correctly.

            <CollectionView
                IsGrouped="True"
                ItemsSource="{Binding Activity}"
                RemainingItemsThreshold="{Binding RemainingItemsThreshold}"
                RemainingItemsThresholdReachedCommand="{Binding GetDataCommand}">
                <CollectionView.GroupHeaderTemplate>
                    <DataTemplate x:DataType="{x:Null}">
                        <ContentView>
                            <Label
                                VerticalTextAlignment="Center"
                                FontFamily="MediumFont"
                                Text="{Binding Key,
                                    Converter={converters:DateConverter}}"/>
                        </ContentView>
                    </DataTemplate>
                </CollectionView.GroupHeaderTemplate>
                <CollectionView.ItemTemplate>
                    <DataTemplate x:DataType="models:ActivityData">
                        ...
                    </DataTemplate>
                </CollectionView.ItemTemplate>
            </CollectionView>

Consider that IsGrouped in CollectionView was not working until a recent version.

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.100 SR10

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output