Пример #1
0
        private void OnRightTapped()
        {
            var cmd   = Touch.GetLongTap(Element);
            var param = Touch.GetLongTapParameter(Element);

            if (cmd?.CanExecute(param) ?? false)
            {
                cmd.Execute(param);
            }
        }
Пример #2
0
 private void LongTapExecute()
 {
     if (commandLongTap != null)
     {
         var param = Touch.GetLongTapParameter(Element);
         if (commandLongTap.CanExecute(param))
         {
             commandLongTap.Execute(param);
         }
     }
     else
     {
         TapExecute();
     }
 }
Пример #3
0
        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);
            }
        }