任何基于WPF的降价渲染?WPF

2023-09-04 01:08:11 作者:无言独上西楼

我们有WPF应用程序。我们那里的文本编辑在网上单独的字符串库。在我们的WPF应用程序,我们使用字符串库中的文本。我们的文档团队使用其中的一些文本从字符串库为他们的HTML帮助文档。一些文本用于在这两个应用程序的交叉。

We have WPF based application. We have separate String repository where the texts are edited in the web. In our WPF application, we use the text from string repository. Our document team use the some of those text from string repository for their html help document. Some texts are cross used in both the application.

该文档小组希望有内置的HTML文本的存储库,以便它可以在HTML文本格式呈现。但我们不希望使用大重量的HTML浏览器中的WPF。

The documentation team wants to have inbuilt html texts in the repository so that it can be rendered in html text format. But we do not want to use heavy weight html browser in to the WPF.

是否有任何WPF控件直接显示在降价?有了这个,WPF可以直接支持降价,因为它是我们可以利用降价夏普转换为HTML。

Are there any WPF controls which display the markdown directly? With this, WPF can directly support markdown as it is and we can use Markdown Sharp to convert to HTML.

我引用下面的职位,但有足够老了。

I referenced the following post, but there are old enough now.

降价的C#/ WPF项目(MarkdownSharp)

轻轻样式的文本库WPF?

WPF HTML文本块。纵观实施,降价到WPF可能很容易..

WPF Html Text Block from Code Project. Looking at implementation, markdown to wpf might be easy..

http://www.$c$cproject.com/KB/WPF/htmltextblock.aspx

推荐答案

您可以使用的这个演示将HTML转换为XAML,呈现在WPF。

You can use the this demo to convert HTML to XAML and render it in WPF.