diff --git a/src/Controls/src/Core/Shell/ShellNavigationManager.cs b/src/Controls/src/Core/Shell/ShellNavigationManager.cs index 9329bf1a5f11..04028e07603d 100644 --- a/src/Controls/src/Core/Shell/ShellNavigationManager.cs +++ b/src/Controls/src/Core/Shell/ShellNavigationManager.cs @@ -115,7 +115,11 @@ internal async Task GoToAsync( modalStackPreBuilt = true; bool? isAnimated = (nextActiveSection != currentShellSection) ? false : animate; - await nextActiveSection.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, isAnimated, isRelativePopping); + + await _shell.Dispatcher.DispatchAsync(() => + { + _ = nextActiveSection.GoToAsync(navigationRequest, parameters, _shell.FindMauiContext()?.Services, isAnimated, isRelativePopping); + }); } if (shellItem != null) diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue22570.xaml b/src/Controls/tests/TestCases.HostApp/Issues/Issue22570.xaml new file mode 100644 index 000000000000..64ae5817720a --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue22570.xaml @@ -0,0 +1,22 @@ + + + + + + +