[英]Which WPF element was used for the Visual Studio code editor?
According to this post , Visual Studio was rewritten using WPF. 根据这篇文章 ,使用WPF重写了Visual Studio。 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...).
我正在试图弄清楚元素用于代码编辑器窗口(特别是C#,如果存在差异)但我无法弄清楚哪个元素可以具有所有这些功能(显然还有很多额外的工作。但是仍然...)。
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.)
(是的,我知道一个完整的编辑器是一个非常大的项目。我说的是一个简单的自定义编辑器。)
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. 快速Snoop后,我可以看到基本元素是:
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView
所以它是一个非常自定义的工作。
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 https://msdn.microsoft.com/en-GB/library/microsoft.visualstudio.text.editor.aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.