如何在 WPF 应用程序中显示 HTML?

如何在 WPF 应用程序中显示 HTML?

问题描述:

我是 WPF 的新手,需要一些帮助和指导.

I am new to WPF and need some help and guidance.

我正在 VS2010 中构建一个客户端应用程序,它将 HTML 存储在数据库中,当用户单击预览 html"按钮时,我需要在我的应用程序中显示此 html 和图像.

I am building a client app in VS2010 that will store HTML in a database, and I need to display this html with images in my application when the user clicks a "preview html" button.

所以我的问题是,

如何在 wpf 页面中将我存储的 HTML 显示为网页?有没有人知道这样做的示例应用程序?

How do I display my stored HTML as a web page in a wpf page? Does anyone know of a sample application that does this?

感谢任何帮助.

在 Web 浏览器控件中加载 html.

Load the html in web browser control.