locked
Change ComboBox's Item's Selected Background Color RRS feed

Answers

  • From the title of your question, I assume that you want to change the item's background, not the combobox's background when it's selected (which is invisible, since covered by the selected item).

    There's a ComboBoxItemSelectedBackgroundThemeBrush resource for that: see http://msdn.microsoft.com/en-us/windows/apps/jj709911.aspx .

    So try this:

    <SolidColorBrush x:Key="ComboBoxItemSelectedBackgroundThemeBrush" Color="#FF4617B4" />

    • Marked as answer by Santana George Thursday, November 21, 2013 9:08 AM
    Thursday, November 21, 2013 6:59 AM

All replies

  • I'm going to guess that you have a Windows 8 app rather than a Windows 8.1 app.

    If that's not it then please provide more details about exactly how you are setting this and how you are testing. A minimal sample demonstrating what you are doing would be very helpful.

    --Rob

    Thursday, November 21, 2013 6:46 AM
    Moderator
  • From the title of your question, I assume that you want to change the item's background, not the combobox's background when it's selected (which is invisible, since covered by the selected item).

    There's a ComboBoxItemSelectedBackgroundThemeBrush resource for that: see http://msdn.microsoft.com/en-us/windows/apps/jj709911.aspx .

    So try this:

    <SolidColorBrush x:Key="ComboBoxItemSelectedBackgroundThemeBrush" Color="#FF4617B4" />

    • Marked as answer by Santana George Thursday, November 21, 2013 9:08 AM
    Thursday, November 21, 2013 6:59 AM