コード例 #1
0
        internal void OnTapped(TouchEffect sender)
        {
            if (!sender.CanExecute || (sender.LongPressCommand != null && sender.InteractionStatus == TouchInteractionStatus.Completed))
            {
                return;
            }

            sender.Command?.Execute(sender.CommandParameter);
            sender.RaiseCompleted();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }