<Button Margin="30" Grid.Row="0">
<Button.ToolTip> <!--实现工具提示-->
<StackPanel>
<TextBlock Margin="3">Image and text</TextBlock>
<Image Source="1.png" Stretch="None"></Image>
<TextBlock Margin="3">Image and text</TextBlock>
</StackPanel>
</Button.ToolTip>
<Button.Content>T have a fancy tooltip</Button.Content>
</Button>
内容来自《wpf编程宝典》Page145 - Page146
效果图:
<img src="https://img-blog.csdn.net/20160920105047143?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
wpf学习 提示信息
最新推荐文章于 2023-10-31 13:35:20 发布