Пример #1
0
        public ImportCheckoutPage()
        {
            InitializeComponent();

            viewModel = new ImportCheckoutViewModel(null, GetBalanceContent(), GetBalanceTemplate());

            this.BindingContext = viewModel;


            lbPaidPrice.GestureRecognizers.Add(new TapGestureRecognizer
            {
                Command = new Command(() =>
                {
                    ImportCheckoutViewModel viewModel = this.BindingContext as ImportCheckoutViewModel;
                    viewModel.FinishPaidPrice();
                }

                                      )
            });
        }
        private void WrapPanel_MouseDown(object sender, MouseButtonEventArgs e)
        {
            ImportCheckoutViewModel viewModel = this.DataContext as ImportCheckoutViewModel;

            viewModel.FinishPaidPrice();
        }