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); } }
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); }
internal void RaiseTouchMoveEvent(TouchEventArgs e) { OnTouchMove(e); }
private static void NotifyTouchMove(TouchEventArgs e) { if (TouchMove != null) TouchMove(null, e); }
protected override void OnTouchUp(TouchEventArgs e) { if (TouchCapture.Captured == this) { TouchCapture.ReleaseCapture(); Invalidate(); if (ContainsScreenPoint(e.Point)) NotifyClick(EventArgs.Empty); } }
internal void RaiseTouchDownEvent(TouchEventArgs e) { OnTouchDown(e); }
protected override void OnTouchMove(TouchEventArgs e) { if (TouchCapture.Captured == this && !ContainsScreenPoint(e.Point)) { TouchCapture.ReleaseCapture(); Invalidate(); } }
protected override void OnTouchDown(TouchEventArgs e) { if (IsEnabled) { TouchCapture.Capture(this); Invalidate(); } }
protected override void OnTouchUp(TouchEventArgs e) { if (TouchCapture.Captured == this) TouchCapture.ReleaseCapture(); }
protected virtual void OnTouchUp(TouchEventArgs e) { if (TouchUp != null) { TouchUp(this, e); } }
internal void RaiseTouchUpEvent(TouchEventArgs e) { OnTouchUp(e); }
private static void NotifyTouchDown(TouchEventArgs e) { if (TouchDown != null) TouchDown(null, e); }
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); }
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; } } }