# Slider Middle Thumb Is not Displayed as Expected when Setting a Custom Style

## Environment

<table>
    <tbody>
	    <tr>
	    	<th scope="row">Product Version</th>
	    	<td>2020.3.916</td>
	    </tr>
	    <tr>
	    	<th scope="row">Product</th>
	    	<td>RadSlider for WPF</td>
	    </tr>
    </tbody>
</table>

## Description

When creating a custom style for the middle thumb of the RadSlider, it is not displayed correctly.

## Solution

The most likely cause for this issue is that you're using the [StyleManager theming approach](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/stylemanager/common-styling-apperance-setting-theme-wpf). In this case to change the style of the middle thumb you need to override the default **Thumb** style and template. You also need to set an appropriate **Height** for it, depending on the theme you're using.

The example below includes the optimal Height values for each of the [themes](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/available-themes) provided by the Telerik UI for WPF suite.

```XAML
	<Style x:Key="CustomSelectionMiddleThumbStyle" TargetType="Thumb">
		
		<Setter Property="Height" Value="6" />
		
		<Setter Property="Height" Value="3" />
		
		<Setter Property="Height" Value="9" />
		
		<Setter Property="Height" Value="4" />
		
		<Setter Property="Height" Value="5" />
		
		<Setter Property="Height" Value="2" />
		
		<Setter Property="Height" Value="10" />

		
		<Setter Property="Background" Value="Blue" />
		<Setter Property="BorderBrush" Value="Red" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Thumb">
					<Grid>
						<Border x:Name="BorderVisual"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}"
								Background="{TemplateBinding Background}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="telerik:RadSlider">
		<Setter Property="SelectionMiddleThumbStyle" Value="{StaticResource CustomSelectionMiddleThumbStyle}" />
	</Style>
```

## See Also

* [StyleManager ThemingApproach](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/stylemanager/common-styling-apperance-setting-theme-wpf)
* [Available Themes](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/themes-suite/available-themes)
