public ChangePaidPriceView() { InitializeComponent(); lbMemberName.GestureRecognizers.Add(new TapGestureRecognizer { Command = new Command(() => { ChangePaidPriceViewModel viewModel = this.BindingContext as ChangePaidPriceViewModel; viewModel.AddMemberPaidPrice(); } ) }); }
private void Label_MouseDown(object sender, MouseButtonEventArgs e) { ChangePaidPriceViewModel model = this.DataContext as ChangePaidPriceViewModel; model.AddMemberPaidPrice(); }