diff --git a/XamlControlsGallery.Shared/App.xaml.cs b/XamlControlsGallery.Shared/App.xaml.cs index 4612952..937aa79 100644 --- a/XamlControlsGallery.Shared/App.xaml.cs +++ b/XamlControlsGallery.Shared/App.xaml.cs @@ -281,6 +281,11 @@ namespace AppUIBasics { rootPage = new NavigationRootPage(); rootFrame = (Frame)rootPage.FindName("rootFrame"); + +#if HAS_UNO // UNO TODO FindName does not materialize the ContentControl content. https://github.com/unoplatform/uno/issues/2950 + rootFrame = rootFrame ?? NavigationRootPage.RootFrame; +#endif + if (rootFrame == null) { throw new Exception("Root frame not found");