我想将两个用户控件放入选项卡控件中,但只有当我单击一个按钮时,用户控件才会加载数据
<Button Click="Button_Click_1" />
<Button Click="Button_Click_2" />
<TabControl>
<ItemsControl Name="tab1">
<local:UserControl1 Loaded="UserControl1_Loaded"></local:UserControl1>
</ItemsControl>
<ItemsControl Name="tab2">
<local:UserControl1 Loaded="UserControl2_Loaded"></local:UserControl1>
</ItemsControl>
</TabControl>