使用以下XAML如何获得对Button的事件处理程序中所选单选按钮的引用?如何获得一组单选按钮的引用并找到所选单引号?
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" x:Name="myWindow">
<Grid>
<StackPanel>
<RadioButton Content="A" GroupName="myGroup"></RadioButton>
<RadioButton Content="B" GroupName="myGroup"></RadioButton>
<RadioButton Content="C" GroupName="myGroup"></RadioButton>
</StackPanel>
<Button Click="Button_Click" Height="100" Width="100"></Button>
</Grid>
</Window>
非常优雅的解决方案!谢谢! – lightxx 2013-04-03 07:12:06