private void Slider_PointerPressed(object sender, PointerRoutedEventArgs e) { startPosition = e.GetCurrentPoint(Base).Position; startPosition.X -= sliderPosition.X; startPosition.Y -= sliderPosition.Y; Captured?.Invoke(this, EventArgs.Empty); pointerCaptured = Slider.CapturePointer(e.Pointer); }