8,757
社区成员
发帖
与我相关
我的任务
分享
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private bool m_bReplayEnable = true;
private bool m_bRecordEnable = false;
public MainWindow()
{
InitializeComponent();
}
}
}
<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">
<Grid>
<RadioButton Margin="05,0,0,0" x:Name="RecordModeButon" IsChecked="{Binding Path=value,ElementName=m_bRecordEnable}" ></RadioButton>
<RadioButton Margin="40,0,0,0" x:Name="ReplayModeButon" IsChecked="{Binding Path=value,ElementName=m_bReplayEnable}" ></RadioButton>
</Grid>
</Window>