Example #1
0
        public App(IProductsRepository productsRepository)
        {
            InitializeComponent();

            //MainPage = new MainPage();
            MainPage = new ProductsPage()
            {
                BindingContext = new ProductsViewModel(productsRepository),
            };
        }
Example #2
0
        public App(IProductsRepository productsRepository)
        {
            InitializeComponent();

            var productsPage = new ProductsPage()
            {
                BindingContext = new ProductsViewModel(productsRepository)
            };

            MainPage = new NavigationPage(productsPage);
        }