public async void OpenFilter() { using (UserDialogs.Instance.Loading("Loading..")) { await PopupNavigation.Instance.PushAsync(FilterPopupView.GetInstance()); } }
public async void ShowStore(Store store) { //TẠO FILTER TRƯỚC CHO STORE var filterView = FilterPopupView.GetInstance(); double maxPrice = dataProvider.FindMaxPriceInStore(store.IDStore); var VM = new FilterPopupViewModel(maxPrice); filterView.BindingContext = VM; ShowStoreView.Destroy(); var showStoreView = ShowStoreView.GetInstance(); showStoreView.BindingContext = new ShowStoreViewModel(store.IDStore); await App.Current.MainPage.Navigation.PushAsync(showStoreView, true); }