Beispiel #1
0
        private void OnSliderContainerCaptureLost(object sender, PointerRoutedEventArgs e)
        {
            var container = sender as FrameworkElement;
            var point     = e.GetCurrentPoint(container).Position;

            ApplyValueToSlide();
            Thumb?.CompleteDrag(point);
        }
Beispiel #2
0
        private void OnSliderContainerReleased(object sender, PointerRoutedEventArgs e)
        {
            var container = sender as FrameworkElement;
            var point     = e.GetCurrentPoint(container).Position;

            ApplyValueToSlide();

            Thumb?.CompleteDrag(point);

            container.ReleasePointerCapture(e.Pointer);

            e.Handled = true;
        }
Beispiel #3
0
 private void OnSliderContainerCaptureLost(object sender, PointerRoutedEventArgs args)
 {
     ApplyValueToSlide();
     Thumb?.CompleteDrag(args);
 }