ToolTip
WPF 中的样式在官方 MSDN 文档中有详细描述。
作为简约示例,您可以使用该示例(XAML):
<Style TargetType="ToolTip">
<Setter Property="TextBlock.FontFamily" Value="YourCustomFontIfNeeded" />
<Setter Property="Margin" Value="0,5,0,0"/>
<Setter Property="Padding" Value="5,2,5,4"/>
<Setter Property="Background" Value="#BF1D1D1D"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="HasDropShadow" Value="True"/>
</Style>
<!-- ... -->
<Grid Background="#FFAFAFAF">
<Button
Content="Press Me"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="200"
Height="48"
FontSize="24"
ToolTip="Use LEFT mouse button to press, ok?"/>
</Grid>