更新时间:2023-10-05 10:02:34
您可以将几乎所有内容放入工具提示中,这是一个使用TextBlock的示例粗体文字。
You can put almost anything into a tooltip, here is an example that uses a TextBlock with some bold text.
<Button Content="Button" Margin="251,210,257,188" >
<ToolTipService.ToolTip>
<TextBlock><Run Text="Non bold text, this is "/><Run FontWeight="Bold" Text="bold."/></TextBlock>
</ToolTipService.ToolTip>
</Button>