Перейти к основному содержимому
Версия: 0.10.x

ToolTip

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

Common Properties

PropertyDescription
TipGets or sets the tooltip contents.
PlacementGets or sets the placement for the tooltip. Default value is Pointer.
HorizontalOffsetGets or sets the tooltip horizontal offset.
VerticalOffsetGets or sets the tooltip vertical offset. Default value is 20.
ShowDelayGets or sets the delay for the tooltip to appear. Default value is 400.
IsOpenGets or sets a value indicating whether the tooltip is currently showing.

Reference

ToolTip

Source code

ToolTip.cs

Examples

Text ToolTip

<Border Margin="5"
Padding="10"
Background="{DynamicResource ThemeAccentBrush}"
ToolTip.Tip="This is a ToolTip">
<TextBlock>Hover Here</TextBlock>
</Border>

Rich Tooltip

<Border Margin="5"
Padding="10"
Background="{DynamicResource ThemeAccentBrush}"
ToolTip.Placement="Bottom">
<ToolTip.Tip>
<StackPanel>
<TextBlock Classes="h1">ToolTip</TextBlock>
<TextBlock Classes="h2">A control which pops up a hint when a control is hovered</TextBlock>
</StackPanel>
</ToolTip.Tip>
<TextBlock>Hover Here for a Bottom ToolTip</TextBlock>
</Border>