private void OnRightTapped() { var cmd = Touch.GetLongTap(Element); var param = Touch.GetLongTapParameter(Element); if (cmd?.CanExecute(param) ?? false) { cmd.Execute(param); } }
private void LongTapExecute() { if (commandLongTap != null) { var param = Touch.GetLongTapParameter(Element); if (commandLongTap.CanExecute(param)) { commandLongTap.Execute(param); } } else { TapExecute(); } }
private void LongTap() { var cmdLong = Touch.GetLongTap(Element); var paramLong = Touch.GetLongTapParameter(Element); if (cmdLong == null) { Tap(); return; } if (cmdLong.CanExecute(paramLong)) { cmdLong.Execute(paramLong); } }