문제

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

도움이 되었습니까?

해결책

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

<SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}" Color="Transparent"/>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top