dotnet / dotnet/maui

Unstable ScrollToPosition.End on Windows

Open
#32,945 1 comment 3 reactions 0 assignees View on GitHub
area-controls-collectionview platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

### Description

`ScrollToPosition.End` is unstable on Windows as shown in the video below.

https://github.com/user-attachments/assets/7b8cc651-f1ab-4191-888c-72e05f9fc517

**It works well on Android. It has not been tested on iOS.**

### Steps to Reproduce

- Create a new project with Visual Studio 2026 with Maui Workload installed.

- Add `SimplePage.xaml.cs`:
```cs
public partial class SimplePage : ContentPage
{
private readonly ObservableCollection _data = [];
public SimplePage()
{
InitializeComponent();
cv.ItemsSource = _data;
}
private async void Initialize_Clicked(object sender, EventArgs e)
{
_data.Clear();
foreach (var item in Enumerable.Range(0, 50).Select(i => $" Item {i}"))
{
await Task.Delay(250);
_data.Add(item);
cv.ScrollTo(item, position: ScrollToPosition.End);
}
}
}
```
- Add `SimplePage.xaml`:
```xml




```

### Link to public reproduction project repository

It is too simple to reproduce so no repo is provided.

### Version with bug

10.0.11

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

Windows

### Affected platform versions

Windows 10 Build 19045.6466

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start with the SimplePage.xaml.cs reproduction and its CollectionView usage, then run the sample on Windows 10 with MAUI 10.0.11. Compare the repeated ScrollTo calls using ScrollToPosition.End with the stated Android behavior. Done means the same incremental initialization reliably scrolls to the end on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.