コード例 #1
0
 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
         });
     });
 }
コード例 #2
0
 public CashPaymentViewModel(CandyType type, string amount, BuyViewModel parentViewModel)
 {
     Type        = type;
     Amount      = amount;
     BackCommand = new RelayCommand(() => parentViewModel.GoToModal(ApplicationPage.None));
 }