I was working on a Study project using MahApps:Metro (don't know if it's relevant) when I got stuck in the following problem:
Is there a way of change the Background
of a ListBoxItem
only when it's selected and the Window
loses focus?
See the following images to ilustrate:
Here we can see my ListBox with the first item selected when the window has focus.
And on this second image we can see how it looks like when the focus is on the Window
number two.
I would like to know if there's a way of changing the Blue Background
of the SelectedItem
to a LightGray, for example, only when the Window loses focus.
Here's what I've looked so far:
- Overwrite
ControlBrushKey
(actually kind of works, but replaces the style when the window has focus) [1] [2] [3] - Overwrite
HighlightBrushKey
(same problem) [1]
Thank you!