Ticket T321538
Visible to All Users

How to change the DXTabControl background

created 9 years ago

[DevExpress Support Team: CLONED FROM T251240: Cannot edit Tab Control styles in WPF Theme Editor]

Hello,
Any news?
I've tested the v15.2.3 and the issue still persists.
I need to edit style of DXTabControl for whole application (to change background color).
Tom

Answers approved by DevExpress Support

created 9 years ago

Hi Tom,
Until the issue with Theme Editor is fixed, you can follow the approach described in the How to customize TabControl's appearance example to customize the DXTabControl. In the example, you can find the CustomThemeResources.xaml. Change the BorderBackground property of the TabBorder located within the CustomThemeResources.TabControlBackground resource.

XAML
<DataTemplate x:Key="CustomThemeResources.TabControlBackground"> <dxcn:TabBorder BorderBackground="Orange" ... /> </DataTemplate>

Let me know if you need additional assistance.

    Comments (2)

      Hello,

      I've edited the file directly and then I used WPF Theme editor to Build my theme.
      DevExpress.Xpf.Themes.My\DevExpress.Xpf.Core\DevExpress.Xpf.Core\TabControl\Themes\My.XAML

      with
      <SolidColorBrush x:Key="TabControl.Background" Color="#FFCFDDEE" cs:Name="SolidColorBrush_0007" />

      Tom

      DevExpress Support Team 9 years ago

        Thank you for informing me about your progress, Tom.
        Should you have additional questions, drop me a line.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.