Asked
Active
Viewed 81 times
2 Answers
1
You can retrieve the model using the control's binding context. Then access the corresponding ID or other properties there:
private void OnStepperValueChanged(object sender, ValueChangedEventArgs e)
{
Stepper stepper = sender as Stepper;
var model = stepper.BindingContext;
// model.id
// model.Count
}

Ax1le
- 6,563
- 2
- 14
- 61
0
To get the current selected value in the stepper you can just:
void OnStepperValueChanged(object sender, ValueChangedEventArgs e)
{
double count = e.NewValue;
}

Bruno Caceiro
- 7,035
- 1
- 26
- 45
-
new value of stepper has count of product in purchase cart but i want send tow parameter count and product id. – Pouria Kaveh Jun 04 '19 at 13:23