Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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
Posted

1 solution

I found the solution. I needed to move the VisualStateManager section completely OUT of the BulletDirectorator section. That solved everything.


BTW, the link above is incorrect. The template comes from the ControlTemplateExamples example provided by Microsoft.

Just thought I'd pass this on.
 
Share this answer
 
Comments
Tarun.K.S 13-Jun-11 15:07pm    
Its a great feeling when a problem gets solved. My 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900