我有DXTabControl
,我想更改DXTabControl
的背景颜色
我怎么能这样做?
<dx:DXTabControl>
<dx:DXTabItem Header="System" Margin="0">
<dxe:TextEdit x:Name="txtChargeNo" Background="#D5D6D8" ShowNullText="True" NullText="Sarj No" Height="30" FontSize="16"/>
</dx:DXTabItem>
<dx:DXTabItem x:Name="tbPast" Header="Past">
</dx:DXTabItem>
</dx:DXTabControl>
答案 0 :(得分:0)
您是否尝试设置BackgroundColor
的{{1}}属性?:
DXTabItem
您可能还想参考以下链接。
如何:更改DXTabControl中的标签背景并保留默认渐变和突出显示效果: https://documentation.devexpress.com/WPF/115323/Controls-and-Libraries/Layout-Management/Tab-Control/Examples/How-to-Change-Tab-Background-in-DXTabControl-and-Keep-the-Default-Gradient-and-Highlight-Effects
如何:选择,聚焦或悬停选项卡时更改DXTabControl中的选项卡背景: https://documentation.devexpress.com/WPF/115324/Controls-and-Libraries/Layout-Management/Tab-Control/Examples/How-to-Change-the-Tab-Background-in-DXTabControl-when-a-Tab-Is-Selected-Focused-Or-Hovered
如何更改DXTabControl背景: https://www.devexpress.com/Support/Center/Question/Details/T321538/how-to-change-the-dxtabcontrol-background