简体   繁体   English

从模板向TabControl添加选项卡

[英]Add tab to TabControl from template

I'm making a simple chat app. 我正在制作一个简单的聊天应用程序。 I would like to have different conversations in tabs. 我想在标签中进行不同的对话。 When user opens a new conversation, I would like to add new tab for him. 当用户打开新对话时,我想为他添加新标签。 The conversation tabs will probably look very similar, only the content will differ. 对话标签可能看起来非常相似,只是内容有所不同。 Is there any elegant way to accomplish this? 有什么优雅的方法可以做到这一点吗? I would like to setup a template for the conversation window, and then reuse it. 我想为对话窗口设置一个模板,然后再使用它。

well you can check out my messenger control. 好吧,您可以查看我的Messenger控制。 I think it's pretty simple https://vstalk.codeplex.com/SourceControl/latest#release_2_1/VSTalk/VSTalk.Engine/View/CommonChatFrame.xaml 我认为这很简单https://vstalk.codeplex.com/SourceControl/latest#release_2_1/VSTalk/VSTalk.Engine/View/CommonChatFrame.xaml

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

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