问题描述
我正在尝试创建一个可同时更改项目符号和单选按钮边框的RadioButton.我基于MSDN论坛上的样式
http://msdn.microsoft.com/en-us/library/ms751600 (v = vs.85).aspx [ ^ ]
本质上,我希望整个单选按钮背景具有圆角边框(如下所示),类似于圆角按钮".我尝试在BulletDecorator段周围添加以下语句,但这实际上禁用了RadioButton.
< Border BorderBrush ="Transparent" BorderThickness ="1" Background ="{DynamicResource ThemedM2DGradient}" CornerRadius ="15" Padding ="0,0,25,0">
有关RadioButton控制模板的任何建议,可让您控制BulletDecorator并让按钮围绕带有CornerRadius和Padding Set的边框?
数周以来,我一直在搜索一个示例,但未发现任何问题.
Michael
I''m trying to create a RadioButton that changes both the Bullet, and the border of the radiobutton. I''m basing the style on the on the MSDN forums
http://msdn.microsoft.com/en-us/library/ms751600(v=vs.85).aspx[^]
Essentially, I''d like the entire radiobutton background to have a rounded border (see below), similar to a Rounded Button. I tried adding the following statement around the BulletDecorator segment, but that essentially disables the RadioButton.
<Border BorderBrush="Transparent" BorderThickness="1" Background="{DynamicResource ThemedM2DGradient}" CornerRadius="15" Padding="0,0,25,0">
Any suggestions on a Control Template for a RadioButton that lets you control the BulletDecorator AND lets you wrap the button around a Border with CornerRadius and Padding Set?
I''ve been googling an example of this for weeks, and haven''t found anything.
Michael
推荐答案
这篇关于XAML RadioButton样式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!