use*_*291 3 c# wpf wpf-controls
我知道按钮,我可以这样做:
this.button1.Click += new System.EventHandler(this.button_Click);
Run Code Online (Sandbox Code Playgroud)
但是如何才能为单选按钮做到这一点?
怎么样:
radioButton1.Click += new RoutedEventHandler(radioButton1_Click);
private void radioButton1_Click(object sender, RoutedEventArgs e)
{
}
Run Code Online (Sandbox Code Playgroud)