更新时间:2022-04-18 19:11:50
请找到代码。
Please find the code.
UserControl userControl = new UCTeamTweet();
userControl.Width = Convert.ToInt32("500");
userControl.Height = Convert.ToInt32("900");
userControl.HorizontalAlignment = HorizontalAlignment.Left;
userControl.VerticalAlignment = VerticalAlignment.Top;
stkPnlSearch.Children.Add(userControl); // Add to the stack panel.
在button_click事件中执行此操作。
Perform this action inside button_click event.