|
@@ -0,0 +1,33 @@
|
|
|
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
+ <Style TargetType="{x:Type RadioButton}" >
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type RadioButton}">
|
|
|
+ <BulletDecorator Background="Transparent" Cursor="Hand">
|
|
|
+ <BulletDecorator.Bullet>
|
|
|
+ <Grid Height="16" Width="16">
|
|
|
+ <!--Define size of the Bullet-->
|
|
|
+ <!--The two borders-->
|
|
|
+ <Border Name="RadioOuter" Background="#202020" BorderBrush="{StaticResource UIElementBorder}" BorderThickness="1" CornerRadius="10" />
|
|
|
+ <Border CornerRadius="10" Margin="4" Name="RadioMark" Background="{StaticResource UIElementBlue}" Visibility="Hidden" />
|
|
|
+ </Grid>
|
|
|
+ </BulletDecorator.Bullet>
|
|
|
+ <!--Text element-->
|
|
|
+ <TextBlock Margin="3,1,0,0" Foreground="White" FontSize="12">
|
|
|
+ <ContentPresenter />
|
|
|
+ </TextBlock>
|
|
|
+ </BulletDecorator>
|
|
|
+ <!--If item is checked, trigger the visibility of the mark-->
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsChecked" Value="true">
|
|
|
+ <!--If item is checked, trigger the visibility of the mark and change the color of the selected bullet into a darker gray for better highlighting-->
|
|
|
+ <Setter TargetName="RadioMark" Property="Visibility" Value="Visible"/>
|
|
|
+ <Setter TargetName="RadioOuter" Property="BorderBrush" Value="White" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+</ResourceDictionary>
|