我的麻烦是,当我按下堆栈面板中的任何按钮时,它不显示空间中的用户控制
public partial class MainWindow : Window
{
GenericName use1 = new GenericName();
public MainWindow()
{
InitializeComponent();
}
private void btn_Generic(object sender, RoutedEventArgs e)
{
stackPanel1.Visibility = Visibility.Visible;
}
private void btn_GeneralInfo(object sender, RoutedEventArgs e)
{
Container.Child = use1;
}
}
}
答案 0 :(得分:1)
五个按钮没有将OnClick设置为btn Generic ep>
<asp:Button ID="1" runat="server" OnClick="btn_Generic" />