ListBox背景不完全透明

时间:2014-08-25 08:13:48

标签: c# wpf xaml listbox

我有TabControl,其中包含ListBox。我已将两个控件的背景设置为Transparent,但似乎在ListBox上有某种磨砂效果:

enter image description here

如何摆脱这种影响?当我将其背景设置为Transparent,只有ListBox时,TabControl中的其他控件没有问题。

修改

我发现了问题。问题不在于ListBox,而在于SurfaceListBox。详情here

对于解决方案,将其添加到资源:

<Window.Resources>
    <SolidColorBrush x:Key="{x:Static s:SurfaceColors.ListBoxBackgroundBrushKey}" Color="Transparent" />
</Window.Resources>

0 个答案:

没有答案
相关问题