New to Telerik UI for WPF? Download free 30-day trial

Getting Started

In order to use RadToolTip you should take advantage of the RadToolTipService. You can set the attached property RadToolTipService.TooltipContent on some element in XAML in order to show tooltip over it.

 <Grid x:Name="LayoutRoot" Background="White"> 
    <Ellipse x:Name="ellipse" 
             telerik:RadToolTipService.ToolTipContent="RadToolTip enables you to specify&#x0a;tooltips on various UI controls."> 
                    <TextBlock Text="{Binding}" /> 
    <TextBlock Name="tBlock" 
               FontFamily="Segoe UI" 
        <Run Text="Hover"/> 
        <LineBreak /> 
        <Run Text=" Here" /> 
Figure 1 demonstrates how the code above is rendered on screen.

radtooltip wpf

The same configuration can be achieved from code like this:

RadToolTipService.SetToolTipContent(this.ellipse, "RadToolTip enables you to specify&#x0a;tooltips on various UI controls."); 
RadToolTipService.SetPlacement(this.ellipse, System.Windows.Controls.Primitives.PlacementMode.Center); 
RadToolTipService.SetToolTipContent(Me.ellipse, "RadToolTip enables you to specify&#x0a;tooltips on various UI controls.") 
RadToolTipService.SetPlacement(Me.ellipse, System.Windows.Controls.Primitives.PlacementMode.Center) 

The RadToolTipService controls the open/close functionality as well as the visual appearance of a RadToolTip object. Also, the service provides a rich set of properties customizing the visualization of the RadToolTip object.

For example you can change the element next to which a tooltip will be opened. This can be achieved by setting the RadToolTipService.PlacementTarget property

<StackPanel Orientation="Horizontal"> 
    <Rectangle Width="30" 
               Margin="20 0" 
               telerik:RadToolTipService.PlacementTarget="{Binding ElementName=rect}" 
               telerik:RadToolTipService.ToolTipContent="ToolTip on foreign element" 
               telerik:RadToolTipService.VerticalOffset="-5" /> 
    <Rectangle x:Name="rect" 
               Fill="Blue" /> 

Figure 2 shows how the ToolTip will be visualized with the above defined settings

radtooltip 2 wpf


Below are listed all properties exposed by the RadToolTipService along with short description.

  • BetweenShowDelay - of type int and gets or sets the maximum time between the display of two tooltips where the second tooltip appears without a delay.

  • HorizontalOffset - of type double which gets or sets the offset from the left of the area that is specified for the tooltip by the PlacementRectangle and PlacementTarget properties.

  • InitialShowDelay - of type int and gets or sets the time in miliseconds before a tooltip opens.

  • IsEnabled - of type bool which gets or sets a value controlling wheter the tooltip should appear.

  • Placement - of type PlacementMode and gets or sets orientation of the tooltip when it opens and specifies how the tooltip behaves when it overlaps screen boundaries.

  • PlacementRectangle - of type Rect and gets or sets the rectangular area relative to which the tooltip is positioned.

  • PlacementTarget - of type UIElement and gets or sets the object relative to which the tooltip is positioned.

  • ShowDuration - of type int and gets or sets the time in miliseconds that a tooltip remains visible.

  • ToolTipContent - of type object and gets or sets the content of the ToolTip.

  • ToolTipContentTemplate - of type DataTemplate and gets or sets the content template of the ToolTip.


The RadToolTipService exposes the following events:

  • ToolTipOpening - occures when a tooltip is in process of opening.

  • ToolTipClosing - occures when a tooltip is in process of closing.

In this article
Not finding the help you need? Improve this article