Change color of border on CheckBox #6679
-
|
Beta Was this translation helpful? Give feedback.
Answered by
MarkusKgit
Oct 8, 2021
Replies: 1 comment 3 replies
-
Just an example (using Fluent Theme): <Grid>
<Grid.Styles>
<Style Selector="CheckBox /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="Red"/>
</Style>
<Style Selector="CheckBox:pointerover /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="Green" />
</Style>
</Grid.Styles>
<CheckBox Content="Check me"/>
</Grid> In addition to |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
roxxel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just an example (using Fluent Theme):
In addition to
:pointerover
you might want to also handle:pressed
,:disabled
,:checked
,:checked:pointerover
,:checked:pressed
and:checked:disabled