How can I use HTML tags inside of a WPF application?
I have some application in which some part of it should render HTM开发者_如何转开发L tags like br
, strong
and img
(local image files) and show them exactly like in a modern browser.
Can I create a dynamic HTML page and load it into a browser control or is there any faster way of doing that?
Either use a browser control (but consider you might need to lock this down to prevent images, script, ... being loaded and used).
Or, if it is a simple enough subset of HTML, transform into a XAML flow document.
精彩评论