# ToolTip

The tooltip of RadSlider enables the user to see the value of the slider's thumb while dragging it. In order to enable the ToolTip in the RadSlider component, you can set the **AutoToolTipPlacement** property. The property is an enumeration of type AutoToolTipPlacement and the possible values which can be set are **None**, **TopLeft**, **BottomRight**. The default value of the **AutoToolTipPlacement** property is **None**.

**Example 1: Set AutoToolTipPlacement property to TopLeft in horizontal orientation**

```XAML
<telerik:RadSlider Minimum="0" Maximum="10" AutoToolTipPlacement="TopLeft"/>
```

You can change the postion of the tool tip by setting the Orientation and AutoToolTipPlacement properties. The following pictures display the different position of the tool tip.

> caption Horizontal orientated sliders

![RadSlider Horizontal orientated AutoToolTipPlacement](https://www.telerik.com/products/wpf/documentation/assets/670db2703755d3cebce7047bd004309a/radslider_autotooltipplacement_horizontal_01.png)

> caption Vertical orientated sliders

![RadSlider ToolTip AutoToolTipPlacement](https://www.telerik.com/products/wpf/documentation/assets/57674fa745ffd5606f6e7ae19ac26ed6/radslider_autotooltipplacement_vertical_02.png)

## ToolTip Value

By default, the ToolTip displays the thumb's value with two decimal symbols of precision (52.42 for example). To change the precision or the default representation of the ToolTip content you can set the **AutoToolTipContentTemplate** property.

**Example 3: Set custom DataTemplate to AutoToolTipContentTemplate property**

```XAML
<telerik:RadSlider Minimum="0" Maximum="10" AutoToolTipPlacement="TopLeft">
    <telerik:RadSlider.AutoToolTipContentTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding .,StringFormat=F1}"/>
        </DataTemplate>
    </telerik:RadSlider.AutoToolTipContentTemplate>
</telerik:RadSlider>
```

> caption Setting custom template to the AutoToolTipContentTemplate property

![RadSlider ToolTip AutoToolTipPlacement BottomRight](https://www.telerik.com/products/wpf/documentation/assets/923477c46bdc2c536364f3e7e3ded23f/radslider_autotooltipplacement_contenttemplate_04.png)

> The value of the ToolTip might not display the actual Value/SelectionStart/SelectionEnd values of the slider. When the **IsDeferredDraggingEnabled** property is set to True, the value of the slider will be updated only when the user finishes the drag operation. Regardless this, the Value of the ToolTip will be updated corresponding to the current location of the thumb, indicating the value when you end the dragging.

## Range Selection

When selection range is enabled, the tooltip will appear on the start thumb or the end thumb depending on which one is dragged. The shown value will correspond to the SelectiondStart and SelectionEnd properties of the RadSlider.

> caption ToolTip in range selection functionality

![RadSlider ToolTip AutoToolTipPlacement RangeToolTip](https://www.telerik.com/products/wpf/documentation/assets/8e9ce0682d388125d875aeca6c91c6b1/radslider_autotooltipplacement_rangeselection_03.png)

## ThumbToolTipStyle

With the **R2 2020** version of Telerik UI for WPF controls, the RadSlider control exposes a **ThumbToolTipStyle** property which can be used to customize the thumb tooltip. **Example 4** demonstrates how we can use this property to add RadCallout control inside the thumb tooltip.

**Example 4: Callout as a ToolTip for RadSlider Thumb**

```XAML
<telerik:RadSlider AutoToolTipPlacement="TopLeft" Minimum="0" Maximum="100" LargeChange="5" SmallChange="1" VerticalAlignment="Center" HorizontalAlignment="Center" Width="500" >
    <telerik:RadSlider.ThumbToolTipStyle>
        <Style TargetType="ToolTip">
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Background" Value="Transparent"/>
        </Style>
    </telerik:RadSlider.ThumbToolTipStyle>
    <telerik:RadSlider.AutoToolTipContentTemplate>
        <DataTemplate>
            <telerik:RadCallout  Margin="5 5 5 10" >
                <TextBlock Text="{Binding .,  StringFormat=N2}" />
            </telerik:RadCallout>
        </DataTemplate>
    </telerik:RadSlider.AutoToolTipContentTemplate>
</telerik:RadSlider>
```

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radslider/declaration)

* [Orientation](https://www.telerik.com/products/wpf/documentation/controls/radslider/features/orientation)

* [Direction](https://www.telerik.com/products/wpf/documentation/controls/radslider/features/direction)

* [RadCallout Overview](https://www.telerik.com/products/wpf/documentation/controls/radcallout/overview)
