如何使用WPF构建一个简单的源代码编辑器?

时间:2021-05-11 00:21:45

Hello there and Merry Christmas !!!

大家好,圣诞快乐!!

I am new to WPF and I am trying to build a text editor for a assembly language. The assembler provides me a two lists:

我是WPF的新手,我正在尝试为汇编语言构建一个文本编辑器。汇编程序提供给我两个列表:

  • a list of errors
  • 错误的列表
  • a list of warnings
  • 一个列表的警告

My editor should have the ability to inport the contents of a file and display it in a text-panel. I want it to be similar to Visual Studio. Line numbers on the side. And a tabbed pane for the warning/error messages.

我的编辑器应该能够嵌入文件的内容并将其显示在文本面板中。我希望它类似于Visual Studio。旁边的行号。以及用于警告/错误消息的选项卡窗格。

Each list element contains the line number as an Int and a String that contains the error/warning message. (It would be really cool if I could click on it in the tabbed pane and it would jump to that line and highlight it.)

每个列表元素都包含行号作为Int类型,以及包含错误/警告消息的字符串。(如果我可以在选项卡窗格中单击它,它就会跳转到该线并突出显示它,那就太棒了。)

How I said I am new to WPF, I don't know the control library and I don't have too much time to dig and get friendly with google.

我怎么说我是WPF的新手,我不知道控制库,也没有太多的时间去挖掘和与谷歌友好相处。

So I would really appreciate it if someone could point me to at least the controls I need to develop my GUI.

因此,如果有人能指出我开发GUI所需的控件,我将非常感激。

My best regards, John

我最好的祝福,约翰

3 个解决方案

#1


0  

All I has for you is two links:

我给你的只有两个链接:

#2


1  

Free one http://blog.bodurov.com/Wpf-Source-Code-Editor

免费一个http://blog.bodurov.com/Wpf-Source-Code-Editor

#3


0  

Our SyntaxEditor for WPF control was just released to the public last week. It is a syntax-highlighting code editor control similar to the Visual Studio 2010 editor. You can find more info about the control here: www.actiprosoftware.com/Products/DotNet/WPF/SyntaxEditor/

我们的WPF控件的SyntaxEditor上周刚刚向公众发布。它是一个语法高亮的代码编辑器控件,类似于Visual Studio 2010编辑器。您可以在这里找到关于控件的更多信息:www.actiprosoftware.com/Products/DotNet/WPF/SyntaxEditor/

#1


0  

All I has for you is two links:

我给你的只有两个链接:

#2


1  

Free one http://blog.bodurov.com/Wpf-Source-Code-Editor

免费一个http://blog.bodurov.com/Wpf-Source-Code-Editor

#3


0  

Our SyntaxEditor for WPF control was just released to the public last week. It is a syntax-highlighting code editor control similar to the Visual Studio 2010 editor. You can find more info about the control here: www.actiprosoftware.com/Products/DotNet/WPF/SyntaxEditor/

我们的WPF控件的SyntaxEditor上周刚刚向公众发布。它是一个语法高亮的代码编辑器控件,类似于Visual Studio 2010编辑器。您可以在这里找到关于控件的更多信息:www.actiprosoftware.com/Products/DotNet/WPF/SyntaxEditor/