开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜