Ejemplo n.º 1
0
        public App()
        {
            InitializeComponent();

            DependencyServiceInitializer.DependencyService = new DependenyServiceWrapper();

            var store = new MobilePageStore();

            store.RegisterPage <GamePage, GameViewModel>();

            var page = new MainPage();

            page.BindingContext = new MainPageViewModel {
                ViewInterface = new MobileInterface(store, page)
            };
            MainPage = new NavigationPage(page);
        }
Ejemplo n.º 2
0
 public MobileInterface(MobilePageStore mobilePageStore, Page currentPage)
 {
     _mobilePageStore = mobilePageStore;
     _currentPage     = currentPage;
 }