Unwanted dotted-line selection aroudn empty text for WPF RadioButtons
-
06-07-2019 - |
Question
I have two radio buttons next to each other, and even though each one has no Content/Text, there is this ugly little dotted-line box that shows up next to which ever one has the focus (I think it wrapping the place where text/label would normally be). Can I get rid of this?
Solution
You should be able to remove this by simply setting the FocusVisualStyle property to null:
<RadioButton FocusVisualStyle="{x:Null}" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow