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 3272950
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:52:50+00:00 2026-05-17T18:52:50+00:00

I am trying to style a WPF ComboBox so that it matches a black-theme

  • 0

I am trying to style a WPF ComboBox so that it matches a black-theme that is being considered for our next project.

My problem is that if the ComboBox’s background is black, the button doesn’t show up (since it is also black).

For some reason I have not been able to find any information about how to change it’s colour.

The following XAML is that I currently have for styling the ComboBox in black:

<ComboBox Name="myComboBox" VerticalAlignment="Top" Width="120"  HorizontalAlignment="Right">
    <ComboBox.Resources>
        <LinearGradientBrush  x:Key="{x:Static SystemColors.HighlightBrushKey}"  StartPoint="0,0" EndPoint="0,1">
            <GradientStop Color="#FFCBCBCB" Offset="0.0"/>
            <GradientStop Color="#FF7C7C7C" Offset="0.3"/>
            <GradientStop Color="black" Offset="1"></GradientStop>
        </LinearGradientBrush>
    </ComboBox.Resources>
    <ComboBox.Background>
        <LinearGradientBrush StartPoint="0,0" EndPoint="0,0.5">
            <GradientStop Color="white" Offset="0"/>
            <GradientStop Color="black" Offset="1"/>
        </LinearGradientBrush>
    </ComboBox.Background>
    <ComboBoxItem Name="cbi1">Item1</ComboBoxItem>
    <ComboBoxItem  Name="cbi2">Item2</ComboBoxItem>
    <ComboBoxItem Name="cbi3">Item3</ComboBoxItem>
</ComboBox>

Any help on the topic would be greatly appreciated.

Thanks,

-Frinny

  • 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-17T18:52:50+00:00Added an answer on May 17, 2026 at 6:52 pm

    You are going to have to modify the ControlTemplate for the ComboBox.

    The control itself is surprisingly-at-first-but-not-when-you-think-about-it complex. I would recommend going into Blend (if you have it) and extracting the ControlTemplate. Otherwise, you can get the XAML for a ComboBox using XAMLWriter.

    This unfortunately named page (I don’t think this is really “Kid’s Stuff”, do you?) has an example of doing both of these things.

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

Sidebar

Related Questions

I'm trying to recreate the style of ComboBox in WPF that you see in
I'm trying to style Comboboxes in WPF so that they are white, and have
I have a WPF CustomControl that is derived from ComboBox and I'm trying to
I'm trying to set the background color of a WPF ComboBox when the SelectedIndex
I am trying to create a custom style for a WPF ComboBox but whenever
Using Silverlight 4 & WPF 4, I'm trying to create a button style that
I am trying to use Windows.Media.Capture.CameraCaptureUI() of Metro Style app in WPF application in
I am new to WPF data binding / style / templates... I am trying
I'm trying to style all <select> elements that are a descendant of a <div>
I am trying to apply a theme to a bunch of wpf projects. There

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.