动态地将样式分配给 TabItem 控件
我在 App.xaml 文件“tabControlStyle”中定义了一个样式。 如何将此样式分配给动态创建的 TabItem 控件。
TabItem item = new TabItem();
item.Header = String.Format("Item {0}", i);
documentTab.Items.Add(item);
I have a style defined in App.xaml file "tabControlStyle". How can I assign this style to my dynamically created TabItem control.
TabItem item = new TabItem();
item.Header = String.Format("Item {0}", i);
documentTab.Items.Add(item);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我得到了答案。 这里是:
I got the answer. Here it is: