Replies: 1 comment 2 replies
-
You always need to read the relevant If you look through it, you'll see properties are applied to the internal <Style Selector="ListBox:not(.Base) ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{StaticResource MainColor}"/>
<Setter Property="Foreground" Value="{StaticResource FontColor}"/>
<Style Selector="^ Button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Foreground" Value="{StaticResource FontColor}"/>
</Style>
</Style> There may be some simplifications, but it's not entirely clear how much customization you want. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't find the pointerover pseudo-class for the button selector, and I have a situation where I need to change the font color when a ListBoxItem is selected. I wrote the style like this
but it's useless
Beta Was this translation helpful? Give feedback.
All reactions