public void OnSwipeRight() { if (SwipeRightCommand != null && SwipeRightCommand.CanExecute(null)) { SwipeRightCommand.Execute(null); } EventHandler handler = SwipeRight; if (handler != null) { handler(this, new EventArgs()); } }
public void SwipeRightEvent() { var para = SwipeRightCommandParameter ?? CommandParameter; if (null != SwipeRightCommand) { if (SwipeRightCommand.CanExecute(para)) { SwipeRightCommand.Execute(para); } } else { SwipeRight?.Invoke(this, para); } }