예제 #1
0
파일: Slider.cs 프로젝트: zhuzilyy/uno
 private void OnSliderContainerMoved(object sender, PointerRoutedEventArgs args)
 {
     if (sender is FrameworkElement container && container.IsCaptured(args.Pointer))
     {
         Thumb?.DeltaDrag(args);
     }
 }
예제 #2
0
        private void OnSliderContainerMoved(object sender, PointerRoutedEventArgs e)
        {
            var container = sender as FrameworkElement;

            if (container.IsCaptured(e.Pointer))
            {
                var point = e.GetCurrentPoint(container).Position;

                Thumb?.DeltaDrag(point);
            }
        }
예제 #3
0
파일: Slider.cs 프로젝트: stjordanis/uno
        private void OnSliderContainerMoved(object sender, PointerRoutedEventArgs e)
        {
            var container = sender as FrameworkElement;

#if __WASM__
            if (!container.IsPointerCaptured)
            {
                return;
            }
#endif

            var point = e.GetCurrentPoint(container).Position;

            Thumb?.DeltaDrag(point);

            e.Handled = true;
        }