ispiro
ispiro

Reputation: 27683

Which WPF element was used for the Visual Studio code editor?

According to this post, Visual Studio was rewritten using WPF. I'm trying to figure out what Element is used for the code editor window (specifically C#, if there's a difference) but I can't figure out which element could have all of that functionality (obviously with a lot of extra work. But still...).

I want to know this is so that I can experiment writing my own little code editor. (Yes, I know a full-fledged editor is a very large project. I'm talking about a simple custom one.)

Upvotes: 5

Views: 1974

Answers (1)

Bijington
Bijington

Reputation: 3751

After a quick Snoop I can see that the base element is: Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView so it is very much a custom job.

I don't know what access you can get to the libraries but there is documentation around the namespace here:

https://msdn.microsoft.com/en-GB/library/microsoft.visualstudio.text.editor.aspx

Upvotes: 7

Related Questions