Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unwanted dotted-line selection aroudn empty text for WPF RadioButtons

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?

like image 367
skb Avatar asked Jan 23 '23 01:01

skb


1 Answers

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

<RadioButton FocusVisualStyle="{x:Null}" />
like image 56
Drew Marsh Avatar answered Feb 12 '23 08:02

Drew Marsh