如何更改DXTabControl背景颜色? [英] How to change the DXTabControl Background Color?

查看:389
本文介绍了如何更改DXTabControl背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个DXTabControl,我想更改DXTabControl的背景颜色.
我该怎么办?

I have a DXTabControl and I want to change the Background Color of the DXTabControl.
How can I do that?

<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>

推荐答案

您尝试设置DXTabItemBackgroundColor属性吗?:

Did you try setting the BackgroundColor property of the DXTabItem?:

<dx:DXTabItem  Header="System" Margin="0" BackgroundColor="Red">

您可能还希望参考以下链接.

You may also want to refer to the following links.

如何:在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渐变高光效果

方法:选择,突出显示或悬停选项卡时,在DXTabControl中更改选项卡背景: https://documentation.devexpress.com/WPF/115324/Controls-and-Libraries/Layout-Management/Tab-Control/Examples/How-to-Change-the-Tab-Background-in-DXTabControl-何时选项卡是选定焦点还是悬停

如何更改DXTabControl背景: 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆