zoukankan      html  css  js  c++  java
  • RadioButton单选

     属性

    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" />

  • 相关阅读:
    解决asp.net mvc的跨域请求问题
    centos安装nodejs
    webapi中配置返回的时间数据格式
    centos安装django
    在Linux CentOS 6.6上安装Python 2.7.9
    nginx日志切割脚本
    apache单ip配置多端口多站点
    centos开启rewrite功能
    Fast Matrix Operations
    1400
  • 原文地址:https://www.cnblogs.com/hl3292/p/2091411.html
Copyright © 2011-2022 走看看