属性
GroupName="SelectedItem"
关键是GroupName的名称要相同。比如这里采用“SelectedItem”。
<RadioButton Content="设备设施运行监控" Height="20" HorizontalAlignment="Left" Margin="10,10,10,0" Name="radioButton0" VerticalAlignment="Top" Grid.Row="1" FontSize="13" Click="ck_Click" Tag="设备设施运行监控" GroupName="SelectedItem" />
<RadioButton Content="企业维修停运监控" Height="20" HorizontalAlignment="Left" Margin="10,10,10,0" Name="radioButton1" VerticalAlignment="Top" Grid.Row="1" FontSize="13" Click="ck_Click" Tag="企业维修停运监控" GroupName="SelectedItem" />
<RadioButton Content="污染物超标异常监控" Height="20" HorizontalAlignment="Left" Margin="10,10,10,0" Name="radioButton2" VerticalAlignment="Top" Grid.Row="1" FontSize="13" Click="ck_Click" Tag="污染物超标异常监控" GroupName="SelectedItem" />
<RadioButton Content="区域排放总量监控" Height="20" HorizontalAlignment="Left" Margin="10,10,10,0" Name="radioButton3" VerticalAlignment="Top" Grid.Row="1" FontSize="13" Click="ck_Click" Tag="区域排放总量监控" GroupName="SelectedItem" />