开发者

Unwanted dotted-line selection aroudn empty text for WPF RadioButtons

开发者 https://www.devze.com 2022-12-09 17:43 出处:网络
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 n开发者_开发问答ext to which ever one has the focus (

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 n开发者_开发问答ext 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?


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

<RadioButton FocusVisualStyle="{x:Null}" />
0

精彩评论

暂无评论...
验证码 换一张
取 消