5

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.)

Community
  • 1
  • 1
ispiro
  • 26,556
  • 38
  • 136
  • 291

1 Answers1

7

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

Bijington
  • 3,661
  • 5
  • 35
  • 52
  • Not directly related, but do you think MS would eventually open-souce all these code-bases? – heltonbiker Jun 28 '16 at 21:29
  • @heltonbiker personally I would say no because I believe MS still see they have a lot of value in the tool but then again I didn't expect them to open-source the .NET Framework... – Bijington Jun 28 '16 at 21:36