【发布时间】:2016-10-04 07:35:09
【问题描述】:
为什么在 WPF 中将项目悬停在透明控件后面时不显示工具提示? 如何使 UserControl 通过不可见的控件显示工具提示?我也尝试使用矩形而不是按钮,结果相同,没有工具提示。
<Grid Height="100" Width="100">
<Rectangle Fill="Red" ToolTip="Tooltip is behind button" Height="20" Width="20" Margin="7,40,73,40"/>
<Rectangle Fill="Yellow" ToolTip="Also behind" Height="20" Width="20" Margin="67,40,13,40"/>
<Button Opacity="0" Background="Transparent" Height="100" Width="100"/>
</Grid>
【问题讨论】:
标签: wpf