如何在 WPF 应用程序中显示 HTML? [英] How do I show HTML in an WPF application?

查看:31
本文介绍了如何在 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.

这篇关于如何在 WPF 应用程序中显示 HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆