<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附加事件,如果在后台代码中,该如何设置这个事件呢?
在后台代码中又是如何设置附加属性的呢?
<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附加事件,如果在后台代码中,该如何设置这个事件呢?
在后台代码中又是如何设置附加属性的呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货