Scrolling in CollectionView acts as if RemainingItemsThreshold is active.

Robert zzz 0 Reputation points
2025-06-14T20:27:28.88+00:00

I have tried fixed height, RemainingItemsThreshold = -1.

Slow scrolling is impossible. It stops at the last visible item, and acts as if it's the last item. With fast scrolling it's hit and miss. Most times it just stops after some elements.

Scrollbar is not visible as well, which mixes perfectly with scrolling that lies about the end of the list.

I am losing my mind. Any help is greatly appreciated.

I ma using version 8. Tried 9, same result.

v (2)

<CollectionView
            x:Name="ItemListCollectionView"
            Grid.Row="1"
            Margin="15,12,15,0"
            ItemsSource="{Binding VisibleItemsList}"
            RemainingItemsThreshold="-1"
            VerticalScrollBarVisibility="Always">
            <CollectionView.ItemsLayout>
                <LinearItemsLayout ItemSpacing="12" Orientation="Vertical" />
            </CollectionView.ItemsLayout>

            <CollectionView.ItemTemplate>
                <DataTemplate>

                    <SwipeView Threshold="60">
                        <!--#region Swipe Right (EDIT)-->
                        <SwipeView.LeftItems>
                            <SwipeItems Mode="Execute">
                                <SwipeItemView Command="{Binding Source={x:Reference MainPageRef}, Path=BindingContext.OpenItemModal}" CommandParameter="{Binding .}">
                                    <Frame BackgroundColor="{StaticResource Edit}" StyleClass="SwipeFrame">
                                        <Image StyleClass="SwipeImage , EditImg" />
                                    </Frame>
                                </SwipeItemView>
                            </SwipeItems>
                        </SwipeView.LeftItems>
                        <!--#endregion-->

                        <!--#region Swipe Left (DELETE)-->
                        <SwipeView.RightItems>
                            <SwipeItems Mode="Execute">
                                <SwipeItemView Command="{Binding Source={x:Reference MainPageRef}, Path=BindingContext.DeleteItem}" CommandParameter="{Binding .}">
                                    <Frame BackgroundColor="{StaticResource Delete}" StyleClass="SwipeFrame">
                                        <Image StyleClass="SwipeImage, DeleteImg" />
                                    </Frame>
                                </SwipeItemView>
                            </SwipeItems>
                        </SwipeView.RightItems>
                        <!--#endregion-->

                        <Border HeightRequest="55" StyleClass="RoundedBorder">
                            <Grid
                                Padding="0,2"
                                BackgroundColor="{StaticResource SurfaceVariant}"
                                ColumnDefinitions="auto, *, auto">
                                <!--#region CheckBox-->
                                <CheckBox x:Name="checkbox" IsChecked="{Binding IsChecked}" />
                                <Button
                                    Command="{Binding Source={x:Reference MainPageRef}, Path=BindingContext.CheckBoxChange}"
                                    CommandParameter="{Binding .}"
                                    StyleClass="TransparentButton" />
                                <!--#endregion-->

                                <!--#region Label-->
                                <Label
                                    Grid.Column="1"
                                    StyleClass="ItemLabel"
                                    Text="{Binding ItemName}">

                                    <Label.Triggers>
                                        <DataTrigger
                                            Binding="{Binding Source={x:Reference checkbox}, Path=IsChecked}"
                                            TargetType="Label"
                                            Value="True">
                                            <Setter Property="TextDecorations" Value="Strikethrough" />
                                        </DataTrigger>
                                    </Label.Triggers>
                                </Label>
                                <!--#endregion-->

                                <!--#region Image_Button-->
                                <ImageButton
                                    Grid.Column="2"
                                    Command="{Binding Source={x:Reference MainPageRef}, Path=BindingContext.OpenURL}"
                                    CommandParameter="{Binding Link}"
                                    IsVisible="{Binding HasLink}"
                                    StyleClass="OpenLink_Style">
                                    <ImageButton.Behaviors>
                                        <toolkit:IconTintColorBehavior TintColor="#CED3D9" />
                                    </ImageButton.Behaviors>
                                </ImageButton>
                                <!--#endregion-->
                            </Grid>
                        </Border>
                    </SwipeView>
                </DataTemplate>
            </CollectionView.ItemTemplate>

        </CollectionView>

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
857 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.