<StackPanel Height="219" Name="stackPanel1" Width="335" Button.Click="Button_Click">
        <Button Content="Button" Height="23" Name="button1" Width="75" />
        <Button Content="Button" Height="23" Name="button2" Width="75" />
        <Button Content="Button" Height="23" Name="button3" Width="75" />
        <CheckBox Content="CheckBox" Height="16" Name="checkBox1" />
  </StackPanel>在XAML中设置了StackPanel的Button.Click附加事件,如果在后台代码中,该如何设置这个事件呢?
在后台代码中又是如何设置附加属性的呢?