Skip to content
Discussion options

You must be logged in to vote

After investigating, this isn't the Theme Editor. There's an error (IMO) in the NumericUpDown ControlTheme which took some work to track down. There's a negative margin in its TextBox which I believe spills it out on top of the border we expect to be drawn.

<TextBox Name="PART_TextBox"
Background="Transparent"
BorderBrush="Transparent"
Margin="-1"

A bit fortuitous that it only happens in :disabled as the Margin will have ControlTemplate priority from the local set value. A conditional activator like :disabled will bump the setter priority up so you can successfully ov…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stevemonaco
Comment options

Answer selected by Jannik-M91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants