Skip to main content

How to: Change Tab Background in DXTabControl and Keep the Default Gradient and Highlight Effects

<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="DXTabControlExample.MainWindow"
    dx:ThemeManager.ThemeName="MetropolisLight"
    Title="Colorized tabs" Height="350" Width="550">
    <Grid>
        <dx:DXTabControl>
            <dx:DXTabItem Header="Coral" AccentColor="Coral"/>
            <dx:DXTabItem Header="Chocolate" AccentColor="Chocolate"/>
            <dx:DXTabItem Header="Cornsilk" AccentColor="Cornsilk"/>
            <dx:DXTabItem Header="SandyBrown" AccentColor="SandyBrown"/>
            <dx:DXTabItem Header="CadetBlue" AccentColor="CadetBlue"/>
            <dx:DXTabItem Header="Violet" AccentColor="Violet"/>
        </dx:DXTabControl>
    </Grid>
</Window>