dotnet / dotnet/maui

[10.0.80] CollectionView scrolling performance

Open
#36,646 7 comments 1 reaction 0 assignees View on GitHub
area-controls-collectionview platform/android t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

Scrolling performance on CollectionView is still really poor. It does not seem to matter how we try to simplify and change our DataTemplates nothing has made the scrolling useable. Even with setting ItemSizingStrategy="MeasureFirstItem" so all items are the same size scrolling freezes and gets stuck.

To be honest though we are kinda tired of hearing you need to simplify your DataTemplates, make every item the same size, remove shadows, use bindings this way and that, don't do this don't do that. We cannot do that as we have business requirements and need these items at different sizes. We have cleaned them up as much as possible and all xaml is absolutely acceptable.

Also our ObservableCollections don't have as many items as virtualization should be able to handle, around 50 items maximum

### Steps to Reproduce

_No response_

### Link to public reproduction project repository

(https://github.com/tranb3r/Issues/tree/main/MauiAppGC)

### Version with bug

10.0.80

### Is this a regression from previous behavior?

No, this is something new

### Last version that worked well

Unknown/Other

### Affected platforms

Android

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start by running the public reproduction project in the MauiAppGC directory of the linked repository on Android with .NET MAUI 10.0.80. Reproduce the CollectionView scrolling freeze using the reported business-sized DataTemplates and roughly 50 items, then compare behavior after investigation; done means scrolling is usable without requiring those templates to be simplified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.