public PaymentSuccessViewModel(BuyViewModel parentViewModel) { DoneCommand = new RelayCommand(() => { //parentViewModel.GoToModal(ApplicationPage.None); IoC.Application.DarkeningGridOpacity = 0.0f; IoC.Application.PayButtonVisibility = Visibility.Hidden; IoC.Application.GoToPage(ApplicationPage.Categories, new CategoriesViewModel { PageLoadAnimation = PageAnimation.None }); }); }
public CashPaymentViewModel(CandyType type, string amount, BuyViewModel parentViewModel) { Type = type; Amount = amount; BackCommand = new RelayCommand(() => parentViewModel.GoToModal(ApplicationPage.None)); }