Hi Leon,
To
set the style of a radio button in WPF, you can define a custom style that
targets the RadioButton control. We have added the code snippet in which, we
define a style called "RadioButtonStyle" that sets some basic
properties such as Foreground, Background, and Margin. Also, we have attached
the sample project for your reference. Please check the sample and let us know
your concern.
Code Snippet:
<Style
x:Key="RadioButtonStyle" TargetType="{x:Type
RadioButton}">
<Setter
Property="Foreground" Value="Green"/>
<Setter
Property="Background" Value="Red"/>
<Setter Property="Margin"
Value="5"/>
</Style>
|
Regards
Karthick Arjunan
Attachment:
MenuItemAdvDemo_ab6aa68e.zip