ListBox SystemColor for Inactive Item?
Asked Answered
Y

1

10

I have changed the following SystemColors already:

<!-- Background of selected item when focussed -->
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
                 Color="Transparent" />
<!-- Background of selected item when not focussed -->
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" 
                 Color="Transparent" />

I'm not sure what to call it, but which SystemColor is responsible for what I'm calling the: "InactiveSelectedItem"? It changes to this color every time I lose focus on the SelectedItem.

Would be nice if someone could help me. I used blend already to check but I can not find. The color is #F0F0F0.

Example:

Demo

Youthful answered 1/11, 2013 at 11:54 Comment(0)
W
3

You're looking for SystemColors.InactiveSelectionHighlightBrushKey (.NET 4.5)

<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent"/>
Wrote answered 1/11, 2013 at 12:3 Comment(1)
Perfect. Thanks! Could not find it in Blend.Youthful

© 2022 - 2024 — McMap. All rights reserved.