fix: Android initialization workaround
This commit is contained in:
Родитель
a9cf804293
Коммит
58a249ab35
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче