免费 XML 控件(WPF 或 Windows 窗体)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17297113/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 09:04:44  来源:igfitidea点击:

Free XML Control (WPF or Windows Forms)

c#.netwpfxmlwinforms

提问by M. X

I am looking for a free control(WPF or Windows Forms) for displaying XMLin a Windows application. For some reasons I don't want to use the Webbrowser control. It should similar to the visualization within the XML Explorer on Codeplex(xmlexplorer.codeplex.com). The control should not have a classical GNU licence, but rather a liberal licence.

我正在寻找用于在 Windows 应用程序中显示 XML免费控件(WPF 或 Windows 窗体)。由于某些原因,我不想使用 Webbrowser 控件。它应该类似于Codeplex( xmlexplorer.codeplex.com)上 XML Explorer 中的可视化。该控件不应具有经典的 GNU 许可证,而应具有自由许可证。

回答by JSJ

Try AvalonEditor. this one has most of fileformat supported with formatting and alots of things.

试试AvalonEditor。这个有大多数文件格式支持格式和很多东西。

sample could be seen below

示例如下

http://www.codeproject.com/Articles/42490/Using-AvalonEdit-WPF-Text-Editor

http://www.codeproject.com/Articles/42490/Using-AvalonEdit-WPF-Text-Editor

回答by clearpath

I found ScintillaNETrather pleasant for using and integration.

我发现ScintillaNET的使用和集成相当令人愉快。