窃取/借用 Visual Studio 2010 tabcontrol-template?
我想要/想要一个带有 TabItem 的 TabControl,我可以关闭(用 x)并四处移动。如果我也可以将选项卡项目移动到其他屏幕,那就太好了。事实上,我想要它完全像 VS2010 中那样,具有对接和并排拆分等功能。但是我自己实现这一切需要几周的时间。我想这就是生活,但也许我可以通过某种方式借用 VS2010 的模板?我尝试窥探 VS2010,但它不起作用,我不知道它是否会,即使我可以,我的意思是窥探无论如何都不会让我提取模板。我还有什么其他选择? Blend 可以帮我吗?反光镜?
I want/would like a TabControl with TabItem's I can close (with an x) and move around. If I also could move the tabitems to other screens it would be great. In fact I want it exactly as in VS2010 with docking and splitting side-by-side etc. But to implement all this by my self would take weeks. Thats life I suppose, but perhaps there is some way I could borrow the templates from VS2010? I tried snooping VS2010 but it wasnt working and I dont know if it would even if I could, I mean its not that snoop lets me extract the templates anyway. What other options do I have? Could Blend help me here? Reflector?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道如何窃取 VS2010 TabControl 模板,
但作为一个开始,我认为这是一个很好的 tabcontrol 模板:
http:// /www.blogs.intuidev.com/post/2010/02/15/WPF-TabControl-series-Part-4-Closeable-TabItems.aspx
这个使选项卡可关闭并将它们保持在一行上,一个特殊的滚动条。
另外,选项卡右侧有一种组合框,其中列出了所有选项卡,就像 VS2010 中一样。
缺少的是移动选项卡的可能性(我认为可以完成),以及将选项卡移动到其他屏幕,就像其他窗口一样(我认为更难做到)。
不管怎样,如果你找到更好的东西,请告诉我:-)
再见。
I don't know about stealing VS2010 TabControl template,
but as a start here's a good tabcontrol template I think :
http://www.blogs.intuidev.com/post/2010/02/15/WPF-TabControl-series-Part-4-Closeable-TabItems.aspx
This one makes the tab closable and keep them on one line, with a special scrollbar.
Also, there is a kind of combobox on the right of the tabs which list all the tabs, like in VS2010.
What is missing is the possibility to move tabs around (could be done I think), and to move tabs to other screen, as if there where other windows (harder to do I think).
Anyway, let me know if you find something better :-)
See you.