Currently, I have to use an ugly hack that works globally via `EventSetter` in a `Style` defined for all Sliders for this.
private void OnSliderLoaded(object sender, RoutedEventArgs e)
{
if (sender is not Slider slider) return;
if (slider.FindVisualChild<Path>() is not { } p) return;
if (VisualTreeHelper.GetChild(p.Parent, 2) is not Path realPath) return;
var roundedPathData = "M-5.5,-9.5A1,1,0,0,1,-4.5,-10.5L3.5,-10.5A1,1,0,0,1,4.5,-9.5L4.5,9.5A1,1,0,0,1,3.5,10.5L-4.5,10.5A1,1,0,0,1,-5.5,9.5z";
var rectangularPathData = "M-4.5,-10.5L4.5,-10.5L4.5,10.5L-4.5,10.5z";
realPath.Data = Geometry.Parse(roundedPathData);
}
I am honestly not a fan of this but so far it looks ok. Perhaps make the thumb use a dynamic resource for its geometry? That way the solution would allow custom-shaped thumbs and would survive potential future xaml structure changes...