Beispiel #1
0
        void IMycoSwipeGestureRecognizerController.SendSwipeLeft(MycoView view)
        {
            if (SwipeLeftCommand != null)
            {
                SwipeLeftCommand.Execute(SwipeLeftCommandParameter);
            }

            if (SwipeLeft != null)
            {
                SwipeLeft(view, new EventArgs());
            }
        }
Beispiel #2
0
        public void OnSwipeLeft()
        {
            if (SwipeLeftCommand != null && SwipeLeftCommand.CanExecute(null))
            {
                SwipeLeftCommand.Execute(null);
            }

            EventHandler handler = SwipeLeft;

            if (handler != null)
            {
                handler(this, new EventArgs());
            }
        }
Beispiel #3
0
        public void SwipeLeftEvent()
        {
            var para = SwipeLeftCommandParameter ?? CommandParameter;

            if (null != SwipeLeftCommand)
            {
                if (SwipeLeftCommand.CanExecute(para))
                {
                    SwipeLeftCommand.Execute(para);
                }
            }
            else
            {
                SwipeLeft?.Invoke(this, para);
            }
        }