private void OnSliderContainerMoved(object sender, PointerRoutedEventArgs args) { if (sender is FrameworkElement container && container.IsCaptured(args.Pointer)) { Thumb?.DeltaDrag(args); } }
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); } }
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; }