Ejemplo n.º 1
0
        public void OnSwipeRight()
        {
            if (SwipeRightCommand != null && SwipeRightCommand.CanExecute(null))
            {
                SwipeRightCommand.Execute(null);
            }

            EventHandler handler = SwipeRight;

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

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