简体   繁体   English

WPF Visual Studio模板-扩展选项卡

[英]WPF Visual Studio Templates - extend tabitem

I'm working on a wpf project in visual studio 2008. I would like to add a xmal and xaml.cs file that describe a TabItem. 我正在Visual Studio 2008中进行一个wpf项目。我想添加一个描述TabItem的xmal和xaml.cs文件。 Templates exist for "Page", "UserControl" and others but not TabItem. 存在“页面”,“用户控件”和其他模板,但没有TabItem。 How do I either make my own template or accomplish this without a template? 如何制作自己的模板或不使用模板即可完成此工作?

Thanks! 谢谢!

When creating my own templates, I usually start from the Microsoft ControlTemplate examples. 创建自己的模板时,通常从Microsoft ControlTemplate示例开始。 Here is the example ControlTemplate for TabItem . 这是TabItem示例ControlTemplate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM