直接上效果图
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
x:Class="WpfAppRadioButton.MainWindow"
x:Name="Window"
Title="MainWindow"
Width="640" Height="480" Background="#FFBAB3B9">
<Window.Resources>
<LinearGradientBrush x:Key="CheckRadioFillNormal">
<GradientStop Color="#FFD2D4D2" Offset="0"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush>
<LinearGradientBrush x:Key="CheckRadioStrokeNormal">
<GradientStop Color="#FF004C94" Offset="0"/>
<GradientStop Color="#FF003C74" Offset="1"/>
</LinearGradientBrush>
<Style x:Key="CheckRadioFocusVisual">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="14,0,0,0" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="RadioButtonColorStyle" TargetType="{x:Type RadioButton}">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
<Setter Property="Background" Value="{StaticResource CheckRadioFillNormal}"/>
<Setter Property="BorderBrush" Value="{StaticResource CheckRadioStrokeNormal}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Grid>
<Rectangle x:Name="rectangle" Fill="#FFA1A1AD" Stroke="Black" Opacity="0.5" RadiusX="5" RadiusY="5" StrokeThickness="0"/>
<TextBlock x:Name="textBlock" Margin="8,0" TextWrapping="Wrap" Text="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" Height="27.137" FontSize="18.667" Foreground="#FF636A64"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="GroupName" Value=""/>
<Trigger Property="GroupName" Value=""/>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Fill" TargetName="rectangle" Value="#FF15156C"/>
<Setter Property="Opacity" TargetName="rectangle" Value="1"/>
<Setter Property="Foreground" TargetName="textBlock">
<Setter.Value>
<LinearGradientBrush>
<GradientStop Color="#FFD2D4D2" Offset="0"/>
<GradientStop Color="#FFFFFFFF" Offset="1"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Effect" TargetName="rectangle" Value="{x:Null}"/>
<Setter Property="Fill" TargetName="rectangle" Value="#FF6868F7"/>
</Trigger>
<Trigger Property="HasContent" Value="true">
<Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}"/>
<Setter Property="Padding" Value="2,0,0,0"/>
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid x:Name="LayoutRoot">
<RadioButton Content="Quantity Info" Focusable="False" HorizontalAlignment="Left" Margin="52.666,59,0,0" VerticalAlignment="Top" Height="27.687" Style="{DynamicResource RadioButtonColorStyle}"/>
<RadioButton Content="Attribulte" Focusable="False" Margin="194,59,0,0" VerticalAlignment="Top" Height="27.687" Style="{DynamicResource RadioButtonColorStyle}" HorizontalAlignment="Left" d:LayoutOverrides="HorizontalAlignment"/>
<RadioButton Content=" Filter" Focusable="False" Margin="307.333,59,0,0" VerticalAlignment="Top" Height="27.687" Style="{DynamicResource RadioButtonColorStyle}" HorizontalAlignment="Left"/>
</Grid>
</Window>