none
请问怎样在后台获取ragionbutton 组的选中项 RRS feed

  • 问题

  • <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" >
                <RadioButton Foreground="White" GroupName="first"  IsChecked="True" Content="MA"/>
                <RadioButton Foreground="White" GroupName="first" Content="BOLL" Margin="0 0 5 0"/>
                <RadioButton Foreground="White" GroupName="second" IsChecked="True" Content="VOL" Margin="5 0 0 0"/>
                <RadioButton Foreground="White" GroupName="second" Content="MACD"/>
                <RadioButton Foreground="White" GroupName="second" Content="KDJ"/>
                <RadioButton Foreground="White" GroupName="second" Content="RSI"/>
                <RadioButton Foreground="White" GroupName="second" Content="CR"/>
                <RadioButton Foreground="White" GroupName="second" Content="PSY"/>
                <RadioButton Foreground="White" GroupName="second" Content="WR"/>
                <RadioButton Foreground="White" GroupName="second" Content="DMA"/>
                <RadioButton Foreground="White" GroupName="second" Content="TRIX"/>
                <RadioButton Foreground="White" GroupName="second" Content="BIAS"/>
                <RadioButton Foreground="White" GroupName="second" Content="ARBR"/>
                <RadioButton Foreground="White" GroupName="second" Content="CCI"/>
                <RadioButton Foreground="White" GroupName="second" Content="DMI"/>
            </StackPanel>
    请问在后台怎样获取我选中的那个radioButton。循环遍历似乎有点奇怪。
    2016年10月14日 6:27

答案

全部回复