Example #1
0
        public void OnSwipeRight()
        {
            if (SwipeRightCommand != null && SwipeRightCommand.CanExecute(null))
            {
                SwipeRightCommand.Execute(null);
            }

            EventHandler handler = SwipeRight;

            if (handler != null)
            {
                handler(this, new EventArgs());
            }
        }
Example #2
0
        public void SwipeRightEvent()
        {
            var para = SwipeRightCommandParameter ?? CommandParameter;

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