StackPanel panel = new StackPanel()
Button button=new Button(){Content="button1"}
TextBlock textblock= new TextBlock(){Text="TextBlock1"}
panel.Children.Add(button)
panel.Children.Add(textblock)
TabItem item= tabcontrol.Items[0] as TabItem
item.Content = panel
https://social.msdn.microsoft.com/Forums/zh-CN/f4d97e7c-2bba-49eb-9367-a96547b6707e/tabitem?forum=wpfzhchs
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)