예제 #1
0
        private static Task InitializeRootPageViewmodel(BindableObject rootPage)
        {
            if (!(rootPage is NavigationPage navigationPage))
            {
                return(rootPage.InitializeViewmodelAsync(null));
            }

            var page = navigationPage.RootPage;

            return(page.InitializeViewmodelAsync(null));
        }