protected virtual void OnTouchDown(TouchEventArgs e)
 {
     if (TouchDown != null)
     {
         TouchDown(this, e);
     }
 }
 protected virtual void OnTouchMove(TouchEventArgs e)
 {
     if (TouchMove != null)
     {
         TouchMove(this, e);
     }
 }
        protected override void OnTouchUp(TouchEventArgs e)
        {
            Point p = e.Point;
            PointToClient(ref p);

            CalibrationManager.CalibrationPoints.TouchX[idx] = (short)p.X;
            CalibrationManager.CalibrationPoints.TouchY[idx] = (short)p.Y;

            idx++;

            if (idx == CalibrationManager.CalibrationPoints.Count)
            {
                // The last point has been reached.
                CalibrationManager.ApplyCalibrationPoints();
                CalibrationManager.SaveCalibrationPoints();

                block.Set();
                Parent.Children.Remove(this);
            }
            else
                Invalidate();
        }
 protected override void OnTouchUp(TouchEventArgs e)
 {
     if (Enabled)
     {
         Checked = !Checked;
         OnCheckedChanged(EventArgs.Empty);
     }
 }
Exemple #5
0
        protected override void OnTouchMove(TouchEventArgs e)
        {
            if (TouchCapture.Captured == this)
            {
                if (orientation == Orientation.Horizontal)
                    Value += e.Point.X - p.X;
                else
                    Value -= e.Point.Y - p.Y;

                p = e.Point;
            }
        }
 private void TouchManager_TouchUp(object sender, TouchEventArgs e)
 {
     Control touchTarget = GetTouchTarget(e.Point);
     if (touchTarget != null)
         touchTarget.RaiseTouchUpEvent(e);
 }
Exemple #7
0
 internal void RaiseTouchMoveEvent(TouchEventArgs e)
 {
     OnTouchMove(e);
 }
 private static void NotifyTouchMove(TouchEventArgs e)
 {
     if (TouchMove != null)
         TouchMove(null, e);
 }
Exemple #9
0
        protected override void OnTouchUp(TouchEventArgs e)
        {
            if (TouchCapture.Captured == this)
            {
                TouchCapture.ReleaseCapture();
                Invalidate();

                if (ContainsScreenPoint(e.Point))
                    NotifyClick(EventArgs.Empty);
            }
        }
Exemple #10
0
 internal void RaiseTouchDownEvent(TouchEventArgs e)
 {
     OnTouchDown(e);
 }
Exemple #11
0
 protected override void OnTouchMove(TouchEventArgs e)
 {
     if (TouchCapture.Captured == this && !ContainsScreenPoint(e.Point))
     {
         TouchCapture.ReleaseCapture();
         Invalidate();
     }
 }
Exemple #12
0
 protected override void OnTouchDown(TouchEventArgs e)
 {
     if (IsEnabled)
     {
         TouchCapture.Capture(this);
         Invalidate();
     }
 }
Exemple #13
0
 protected override void OnTouchUp(TouchEventArgs e)
 {
     if (TouchCapture.Captured == this)
         TouchCapture.ReleaseCapture();
 }
 protected virtual void OnTouchUp(TouchEventArgs e)
 {
     if (TouchUp != null)
     {
         TouchUp(this, e);
     }
 }
Exemple #15
0
 internal void RaiseTouchUpEvent(TouchEventArgs e)
 {
     OnTouchUp(e);
 }
 private static void NotifyTouchDown(TouchEventArgs e)
 {
     if (TouchDown != null)
         TouchDown(null, e);
 }
Exemple #17
0
 protected override void OnTouchUp(TouchEventArgs e)
 {
     if (IsEnabled)
     {
         IsChecked = true;
         OnCheckedChanged(EventArgs.Empty);
     }
 }
 private static void NotifyTouchUp(TouchEventArgs e)
 {
     if (TouchUp != null)
         TouchUp(null, e);
 }
Exemple #19
0
 protected override void OnTouchDown(TouchEventArgs e)
 {
     Point pp = e.Point;
     PointToClient(ref pp);
     if (thumbArea.Contains(pp))
     {
         TouchCapture.Capture(this);
         p = e.Point;
     }
     else if (trackArea.Contains(pp))
     {
         if (orientation == Orientation.Horizontal)
         {
             if (pp.X < thumbArea.X)
                 Value -= largeChange;
             else
                 Value += largeChange;
         }
         else
         {
             if (pp.Y < thumbArea.Y)
                 Value += largeChange;
             else
                 Value -= largeChange;
         }
     }
 }