コード例 #1
0
        private void SetupMainPage()
        {
            var container   = _platformInitializer.Build();
            var viewFactory = container.Resolve <IViewFactory>();
            var welcomePage = viewFactory.ResolveView <IWelcomeViewModel>() as Page;

            MainPage = new CustomNavigationPage(welcomePage);
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: ueezus/Restaurant-App
        private void SetupMainPage()
        {
            var container = _platformInitializer.Build();

            Container = container;
            var viewFactory = container.Resolve <IViewFactory>();
            var welcomePage = viewFactory.ResolveView <IWelcomeViewModel>() as Page;

            MainPage = new AppShell();
        }