开发者

Adding Tab Capibilities to a Basic Text Editor

开发者 https://www.devze.com 2023-03-28 01:19 出处:网络
I currently have created a basic text editor in windows wpf. I was wondering if there was a way to add tabs (simmilar to 开发者_StackOverflow中文版notepad++ tabs). Right now I use a richTextBox that t

I currently have created a basic text editor in windows wpf. I was wondering if there was a way to add tabs (simmilar to 开发者_StackOverflow中文版notepad++ tabs). Right now I use a richTextBox that the user enters in the text. I want to let the user open new tabs in the notepad editor. I've found an example: How to create trapezoid tabs in WPF tab control. but its a little more advanced for me. If anyone has any starting point suggestions or know any basic examples it would be greatly appreciated.


WPF TabControl is what you need. Using it you can easily add a new TabItem as child to the tabcontrol and insert a RichTextEditor as content to the TabItem.

The link you include is however merely describing how to re-style a tabcontrol.

The real issue for you will be developing an application with multiple open documents.

0

精彩评论

暂无评论...
验证码 换一张
取 消