I'm trying to create a replicate of WhatsApp in NET10 MAUI. I have the list of messages: the newest one at the bottom of the list and the old at the top.

For this implementation I user a CollectionView.

<CollectionView x:Name="MessagesList" Grid.Row="1" Margin="0,10" EmptyView="No messages here yet" RemainingItemsThreshold="5" RemainingItemsThresholdReachedCommand="{Binding LoadMoreMessagesCommand}"> <!-- more XAML --> </CollectionView>

The code shows the message but the incremental load is only working when the user reach the end of the list in the CollectionView and invokes RemainingItemsThresholdReachedCommand.

In the case of a chat, I want to load old messages when the user reach the top of the list not the bottom.

enter image description here

How can I implement this behaviour?

Enrico's user avatar

1

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.