This happens when a button or link behind another button or link is getting its touchdown event fired as well.
The fix here:
1. Make sure tap event of both controls are subscribed on the Touchdown event.
2. Put a e.Handled = true; statement inside the eventhandler of the overlapping control.
Example:
Code Snippet
- private void OpenDoctor_Touch(object sender, TouchEventArgs e)
- {
- e.Handled = true;
- string commandParameter = ((Button)sender).CommandParameter.ToString();
- var viewModel = (DoctorsBySpecializationViewModel)DataContext;
- if (viewModel.OpenDoctor.CanExecute(commandParameter))
- viewModel.OpenDoctor.Execute(commandParameter);
- }
Happy Coding!