如何更改DXTabControl背景颜色

如何更改DXTabControl背景颜色

本文介绍了如何更改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背景: https://www.devexpress.com/support/Center/Question/Details/T321538/how-to-change-the-dxtabcontrol-background

这篇关于如何更改DXTabControl背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 15:34