ToolTip
The ToolTip is a control that pops up with hint text when hovered over the appropriate control.

Common Properties

Property
Description
Tip
Gets or sets the tooltip contents.
Placement
Gets or sets the placement for the tooltip. Default value is Pointer.
HorizontalOffset
Gets or sets the tooltip horizontal offset.
VerticalOffset
Gets or sets the tooltip vertical offset. Default value is 20.
ShowDelay
Gets or sets the delay for the tooltip to appear. Default value is 400.
IsOpen
Gets or sets a value indicating whether the tooltip is currently showing.

Reference

​ToolTip​

Source code

​ToolTip.cs​

Examples

Text ToolTip

1
<Border Margin="5"
2
Padding="10"
3
Background="{DynamicResource ThemeAccentBrush}"
4
ToolTip.Tip="This is a ToolTip">
5
<TextBlock>Hover Here</TextBlock>
6
</Border>
Copied!

Rich Tooltip

1
<Border Margin="5"
2
Padding="10"
3
Background="{DynamicResource ThemeAccentBrush}"
4
ToolTip.Placement="Bottom">
5
<ToolTip.Tip>
6
<StackPanel>
7
<TextBlock Classes="h1">ToolTip</TextBlock>
8
<TextBlock Classes="h2">A control which pops up a hint when a control is hovered</TextBlock>
9
</StackPanel>
10
</ToolTip.Tip>
11
<TextBlock>Hover Here for a Bottom ToolTip</TextBlock>
12
</Border>
Copied!
Last modified 6mo ago