WPF- 将工具提示背景更改为透明 [英] WPF- Changing Tooltip background to Transparent
本文介绍了WPF- 将工具提示背景更改为透明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图做到这一点,当我将鼠标悬停在应用程序中的按钮上时,工具提示"会显示我的措辞以及透明背景,而不是白色背景.
I am attempting to make it so that when I hover over a button in my application, the "tooltip" displays my wording, along with a transparent background, instead of the white background.
我只是想将工具提示的默认设置更改为透明背景..
I am merely trying to change the tooltip default settings to a transparent background..
我看了又看,但没有成功..有人有什么想法吗?
I have looked and looked, but to no success.. anyone have any ideas?
谢谢.
推荐答案
<Style x:Key="{x:Type ToolTip}"
TargetType="{x:Type ToolTip}">
<Setter Property="Background"
Value="Transparent" />
</Style>
将其放在您的视图或应用程序的资源字典中.
Place this in the resource dictionary of your view, or for your application.
这篇关于WPF- 将工具提示背景更改为透明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文