Exemple #1
0
 private void Knob_PointerDown(object sender, PointerRoutedEventArgs e)
 {
     _startPos  = e.GetCurrentPoint(Base).Position;
     _prevAngle = _prevDistance = 0;
     Knob.CapturePointer(e.Pointer);
     pointerOutOfArea = false;
     pointer          = e.Pointer;
 }
        private void Knob_PointerPressed(object sender, PointerRoutedEventArgs e)
        {
            startPosition    = e.GetCurrentPoint(Base).Position;
            startPosition.X -= knobPosition.X;
            startPosition.Y -= knobPosition.Y;

            Captured?.Invoke(this, EventArgs.Empty);
            pointerCaptured = Knob.CapturePointer(e.Pointer);
        }