Unwanted dashed line selection aroudn blank text for WPF RadioButtons

I have two switches next to each other, and although each one has no Content / Text, there is this ugly little rectangle with a dashed line that appears next to which the focus has ever been (I think it wraps the place where it usually will be text / label). Can i get rid of this?

+3
source share
1 answer

You should remove this by simply setting the FocusVisualStyle property to null:

<RadioButton FocusVisualStyle="{x:Null}" />
+8
source

Source: https://habr.com/ru/post/1721136/


All Articles