示例#1
0
 private void DoLongPress()
 {
     LongPressEvent?.Invoke(PressedPos);
     //这里不初始化,是为了触发长按之后还能继续拖动,
     // Init();
     m_isPressed = true;
 }
        public void HandleLongPress(object sender, EventArgs e)
        {
            LongPressEvent?.Invoke(this, e);
            var kkk = DependencyService.Get <IAlertClass>();

            kkk.ShowAlert();
        }
 public void RaiseLongPressEvent()
 {
     if (IsEnabled)
     {
         LongPressEvent?.Invoke(this, EventArgs.Empty);
     }
 }
示例#4
0
 private void DoLongPress()
 {
     LongPressEvent?.Invoke();
     Init();
 }