如何从组合框中删除灰色背景? [英] How do I remove the grey background from the combobox?
问题描述
我无法设置 ComboBox
的样式。我给了一个屏幕截图的链接,该屏幕截图显示了一些 TextBlock
控件旁边的 ComboBox
。当 ComboBox
而不是时,我希望它看起来像 TextBlock
控件,但我似乎无法找到属性来摆脱默认的灰色背景。
任何帮助都会非常感激。< br $> b $ b
亲切的愿望 - Patrick
Capture.JPG - Google Drive [ ^ ]
注意:除非您将链接复制并粘贴到浏览器地址栏中,否则该链接似乎无效。罢工>
我的尝试:
我试过了后台
属性并查看了MSDN上的所有属性(虽然我还没有按照类层次结构的方式查看是否可以看到导致问题的属性) 。
I am having trouble styling a ComboBox
. I have given a link to a screenshot that shows a ComboBox
next to some TextBlock
controls. When the ComboBox
is not selected, I want it to look like the TextBlock
controls, but I can't seem to find the property to get rid of the default grey background.
Any help would be most appreciated.
Kind wishes - Patrick
Capture.JPG - Google Drive[^]
Note: The link doesn't appear to work unless you copy and paste it into the browser address bar.
What I have tried:
I have tried the Background
property and have looked through all the properties on MSDN (though I haven't yet worked my way up the class hierarchy to see if I can see the property causing the problem).
推荐答案
右键单击组合框转到属性并将BackColor属性更改为您想要的任何颜色。
Right click on the combobox go to properties and change the BackColor property to whichever color you want.
这篇关于如何从组合框中删除灰色背景?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!