Repository navigation
Description
Current behavior
When navigating to an existing (cached) page with ItemsRepeater it stops layouting items that were out of scope while scrolling
Android issue happens if you try to manipulate with the collection. When you remove items or clear it doesn't remove items visually but touching it removes. Adding new items doesn't layout new items at all. So if you clear the collection it stays empty visually. Tested on 4.8.15 stable
Expected behavior
Layout items as it should
How to reproduce it (as minimally and precisely as possible)
- Run a Skia project in the repro
- Click on "Go" button in the toolbars
- Wait for navigations done
- Scroll up or down
Repro:
ItemsRepeaterIssue.zip
Workaround
Skia: Force layout by changing size of window or refresh ItemsSource
Android: Reset ItemsSource
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
No response
Affected platforms
Skia (WPF), Skia (GTK on Linux/macOS/Windows), Skia (Linux Framebuffer), Skia (Tizen)
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
GTK have the same issue as well so I suppose that every Skia project is having that issue

Activity
FrozDark commentedon Mar 26, 2023
Seems like Android have a little different issue with layouting items but might be related to as well
Android issue happens if you try to manipulate with the collection. When you remove items or clear it doesn't remove items visually but touching it removes. Then adding new items doesn't layout new items at all. So if you clear the collection it stays clear visually. Tested on 4.8.15 stable
[-][Skia] ItemsRepeater fails to layout outscoped items when navigated back again[/-][+][Skia|Android] ItemsRepeater fails to layout items when navigated back again[/+][-][Skia|Android] ItemsRepeater fails to layout items when navigated back again[/-][+][Skia|Android] `ItemsRepeater` fails to layout items when navigated back again[/+]test: Reproduce ItemsRepeater layout failure after navigation back
MartinZikmund commentedon Apr 8, 2026
Repro generator
Runtime test(s) added in branch
dev/mazi/repro/11626:src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Repeater/Given_ItemsRepeater.cs→When_NavigatedBack_ItemsRepeater_Still_Lays_Out_ItemsItemsRepeater(NavigationCacheMode=Required), navigates away, navigates back, and verifies items are still laid out and scrollable. The branch is provided as a starting point for further investigation if the issue persists in specific scenarios.MartinZikmund commentedon Nov 7, 2026
This should be resolved: #12101 made ItemsRepeater invalidate its measure on load so it subscribes to EffectiveViewportChanged again, and #25156 (which ships in 7.0) also refreshes the viewport when a cached page re-enters the tree. Master now has a runtime test for navigating back to a cached page:
uno/src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/Repeater/Given_ItemsRepeater.cs
Lines 1291 to 1322 in 1f84af6
This was checked as part of an AI-assisted backlog review by reading the code, not by running it. If it looks wrong, please reply and we will take another look.