简体   繁体   English

哪个WPF元素用于Visual Studio代码编辑器?

[英]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.

相关问题 无法在代码编辑器 Visual Studio 中查看代码 - Unable to see code in code editor visual studio 在 Visual Studio Code 编辑器中创建 .dll 子项目 - Creating .dll subproject in Visual Studio Code editor 光标在代码编辑器中的 Visual Studio 2019 中断开 - The cursor broke in Visual Studio 2019 in a code editor 是否有任何Visual Studio代码编辑器控件? - Is there any Visual Studio like code editor control? 代码编辑器Visual Studio 2013中缺少颜色 - Missing colors in code editor Visual Studio 2013 将 Visual Studio 代码编辑器用作扩展中的控件 - Using Visual Studio Code Editor as a Control in an extension 是否可以在Visual Studio中修改导航栏,或者以其他方式向代码编辑器添加类似的图形元素? - Is it possible to modify the Navigation Bar in Visual Studio, or to otherwise add a similar graphical element to the code editor? Visual Studio 2010代码编辑器概述图标? - Visual Studio 2010 Code Editor Outlining Icons? 如何在 WPF (Visual Studio 2019) 中使用摩纳哥编辑器? - How to use Monaco Editor in WPF (Visual Studio 2019)? Visual Studio 2015 WPF XAML编辑器无法打开XAML文件 - Visual Studio 2015 WPF XAML Editor cannot open XAML files
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM