internal void OnTapped(TouchEffect sender) { if (!sender.CanExecute || (sender.LongPressCommand != null && sender.InteractionStatus == TouchInteractionStatus.Completed)) { return; } sender.Command?.Execute(sender.CommandParameter); sender.RaiseCompleted(); }
internal void OnTapped(TouchEffect sender) { if (!sender.CanExecute || (sender.LongPressCommand != null && sender.InteractionStatus == TouchInteractionStatus.Completed)) { return; } if (sender.Element is IButtonController button) { button.SendClicked(); } sender.Command?.Execute(sender.CommandParameter); sender.RaiseCompleted(); }
internal void OnTapped(TouchEffect sender) { if (!sender.CanExecute || (sender.LongPressCommand != null && sender.InteractionStatus == TouchInteractionStatus.Completed)) { return; } if (Device.RuntimePlatform == Device.Android) { HandleCollectionViewSelection(sender); } if (sender.Element is IButtonController button) { button.SendClicked(); } sender.RaiseCompleted(); }