Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 553317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:35:32+00:00 2026-05-13T11:35:32+00:00

I have a TabControl in my WPF application that uses the default colors for

  • 0

I have a TabControl in my WPF application that uses the default colors for the WPF tab control. In other words, the active tab is white, and the inactive tabs are silver. I have changed the Background color of all of the tab pages to Beige, by setting the Background property of the TabControl object, but it doesn’t change the tab color, only the client area. So, I have ended up with an active tab that has a beige client area and a white tab.

I would like to set the tab Color to match the client area, so that the entire page is beige. How would I do that? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T11:35:33+00:00Added an answer on May 13, 2026 at 11:35 am

    Here is an example of tab item style from one of my projects. Sorry for some irrelevant code, I’m sure you will extract what you need from it.

    <Style x:Uid="Style_21" TargetType="{x:Type TabItem}">
            <Setter x:Uid="Setter_75" Property="Template">
                <Setter.Value>
                    <ControlTemplate x:Uid="ControlTemplate_7" TargetType="{x:Type TabItem}">
                        <Grid x:Uid="Grid_13">
                            <Border 
                                 x:Uid="Border" Name="Border"
                                 Background="#F0F0F0"
                                 BorderBrush="LightGray" 
                                 BorderThickness="1,1,1,0" 
                                 CornerRadius="4,4,0,0" 
                                 Margin="0,0,2,0" SnapsToDevicePixels="True" >
                                <TextBlock x:Uid="TextBlock" FontSize="15" 
                                           HorizontalAlignment="Center" 
                                           Name="TextBlock" 
                                           Foreground="DarkGray">
                                <ContentPresenter x:Uid="ContentSite" x:Name="ContentSite"
                                                   VerticalAlignment="Center"
                                                   HorizontalAlignment="Center"
                                                   ContentSource="Header"
                                                   Margin="12,2,12,2"/>
                                </TextBlock>
                            </Border>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger x:Uid="Trigger_14" Property="IsSelected" Value="True">
                                <Setter x:Uid="Setter_76" TargetName="Border" Property="Background" Value="White" />
                                <Setter x:Uid="Setter_77" TargetName="Border" Property="BorderBrush" Value="Gray" />
                                <Setter x:Uid="Setter_78" TargetName="TextBlock" Property="Foreground" Value="Black" />
                                <Setter x:Uid="Setter_79" TargetName="Border" Property="Margin" Value="0,0,2,-1" />
                            </Trigger>
                            <Trigger x:Uid="Trigger_15" Property="IsMouseOver" Value="True" SourceName="Border" >
                                <Setter x:Uid="Setter_80" TargetName="Border" Property="Background" Value="White" />
                                <Setter x:Uid="Setter_81" TargetName="Border" Property="BorderBrush" Value="DarkGray" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application that uses a TabControl. Each TabItem will contain a
I have a WPF application with a screen containing a tab control with two
I have a WPF TabControl that has a couple of buttons in the TabItem
I have a complex WPF control that for some reasons (ie. performance) is not
I have a WPF Menu and a Tab control. I would like the list
I have a WPF application that I'm trying to dynamically add items to a
I have a WPF application that mostly follows MVVM, which I am trying to
I have created a TabControl in a WPF application I'm writing. I re-templated TabItem
I have a C#/WPF application with a tabbed interface that has been behaving strangely.
I have a wpf application using mvvm approach. The main window contains a tab

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.