Repository navigation
Description
Description
On .NET MAUI 10.0.90 (Android), a page that is
- registered in DI as a Singleton, and
- navigated to as a registered route (
Routing.RegisterRoute) pushed withGoToAsync("Route")
renders completely blank — no content at all, only the Android action_bar_root — when it is pushed a second time, if in between the Shell navigation stack was reset with an absolute route (GoToAsync("///Root")) while another pushed page was on top of it.
Works correctly on 10.0.80. Same app, same device, same steps.
The failure is a silent navigation no-op, not a rendering failure: GoToAsync completes without throwing, but the destination page is never attached.
Steps to Reproduce
Bare dotnet new maui, net10.0-android, Release build, <MauiVersion>10.0.90</MauiVersion>.
- Register a second page as a Singleton and as a route:
// MauiProgram
builder.Services.AddSingleton<SecondPage>();
// AppShell ctor
Routing.RegisterRoute("SecondPage", typeof(SecondPage));
Routing.RegisterRoute("ThirdPage", typeof(ThirdPage));SecondPage just needs visible content (a few Labels/Buttons).
- From the root page:
await Shell.Current.GoToAsync("SecondPage");→ renders correctly. - From SecondPage:
await Shell.Current.GoToAsync("ThirdPage");→ ThirdPage on top, SecondPage now buried in the stack. - From ThirdPage:
await Shell.Current.GoToAsync("///MainPage");→ stack reset. - From the root page again:
await Shell.Current.GoToAsync("SecondPage");
Result
Expected: SecondPage renders its content again (as it does on 10.0.80).
Actual on 10.0.90: SecondPage is completely blank.
UI dump text content:
| step | 10.0.80 | 10.0.90 |
|---|---|---|
| visit 1 | Second page, Some body text., … |
Second page, Some body text., … |
| visit 2 (after steps 3-4) | Second page, Some body text., … |
(nothing) |
The failing screen contains only action_bar_root — no text, no controls.
Diagnostics. Instrumenting the page's NavigatedTo on 10.0.90 across both visits:
visit 1: [Probe] Content==null:False contentType:Grid childCount:1 handler:null
visit 2: (no output at all)
NavigatedTonever fires on the second push. The handler is never created and the page is never attached.- The page object is intact.
Contentis non-null and still holds itsGridwith children — this is not lost property state or a torn-down visual tree. - No exception is raised anywhere. Logcat shows no MAUI/app error during the failed navigation.
Not reproducible when the Singleton page is top of stack at the moment of the absolute-route reset — a push → /// reset → push loop runs indefinitely without blanking. The failure requires another page pushed on top before the reset.
ShellContentFragment and ShellPageContainer decompile byte-identical between 10.0.80 and 10.0.90, so the change is not in those types. The most substantial core difference between the two versions is in BindableObject, where the property store was re-keyed from the BindableProperty object to an int id:
// 10.0.80
private readonly Dictionary<BindableProperty, BindablePropertyContext> _properties;
// 10.0.90
private readonly Dictionary<int, BindablePropertyContext> _properties; // property.InternalId
internal readonly int InternalId = Interlocked.Increment(ref _nextInternalId);No link between that change and this regression has been proven — Content survives, so if related it would have to be some other piece of Shell's routing/presentation state rather than the page's own properties.
Workarounds tried (all fail)
| workaround | result |
|---|---|
| Register the page Transient instead of Singleton | Blank page goes away, but introduces a per-navigation fragment/page leak (filed separately) |
Clear + repopulate the bound ObservableCollection on NavigatedTo |
still blank |
Re-assign CollectionView.ItemsSource (null, then re-set) on NavigatedTo |
still blank |
Navigation.PopToRootAsync() before the absolute-route navigation |
still blank |
| Make the other pushed page Transient, keep the first Singleton | still blank |
Impact
This blocks upgrading to 10.0.90. 10.0.90 contains CollectionView memory-leak fixes (#17698, #35497) that were independently verified to fix a real leak — on 10.0.80 a login → grouped-CollectionView list → back cycle retains roughly 1 ShellPageContainer, 2 CoordinatorLayout and ~12 Android Views per cycle after a full managed + ART GC; on 10.0.90 every one of those classes returns to baseline. But 10.0.90 cannot be shipped because of this blank-page regression, leaving the app stuck on a version with a known leak.
Version with bug
10.0.90
Last version that worked well
10.0.80
Affected platforms
Android
Affected platform versions
Android 13 (API 33) emulator and a physical Android 13 arm64 device
Did you find any workaround?
No workaround found that preserves Singleton page registration. Switching the page to Transient avoids the blank page but trades it for a per-navigation leak.
Relevant log output
# 10.0.90, visit 2 — GoToAsync completes, nothing is attached, no exception logged
# NavigatedTo never fires; UI hierarchy contains only action_bar_root
Activity
danlfarnell commentedon Jul 28, 2026
Related: #36852. Registering the page
AddTransientavoids this blank page, but that configuration hits the hidden-ShellContentFragmentleak described there, so it is not a usable workaround.HarishKumarSF4517 commentedon Jul 28, 2026
This issue has been validated in Visual Studio Code 1.130.0 with .NET MAUI versions 10.0.80 & 10.0.90. It can be reproduced on the Android platform from 10.0.90 version. I have attached the sample(AndroidShellIssue.zip) and output for reference:
Screen.Recording.2026-07-28.at.12.54.46.PM.mov
Screen.Recording.2026-07-28.at.12.58.07.PM.mov
idenardi commentedon Jul 30, 2026
Has anyone found a workaround?
[Android] Fix Shell singleton page rendering blank when re-pushed aft…
[Android] Fix Shell singleton page rendering blank when re-pushed aft…
[release/10.0.1xx-sr10] Integrate .NET MAUI 10.0.101 VS insertion pay…