public MyOrdersPage() { InitializeComponent(); var myOrdersDataService = MyOrdersDataService.Instance; viewModels = new MyOrdersPageViewModel(myOrdersDataService); BindingContext = viewModels; //getOrders(); }
/// <summary> /// Initializes a new instance of the <see cref="MyOrdersPage" /> class. /// </summary> public MyOrdersPage() { InitializeComponent(); this.BindingContext = VM = new MyOrdersPageViewModel(Navigation); }