How to show HTML in Xaml in C#
10,816
Solution 1
I guess you'll have to use <WebBrowser>
control. you will need to call the NavigateToString
function. Check out http://blogs.msdn.com/b/llobo/archive/2008/06/12/wpf-webbrowser.aspx
Solution 2
Try using
<Frame Source="page.html" ... />
or WebBrowser
Solution 3
You can use a WebBrowser
control, and the NavigateToString
method as described here - Set System.Windows.Controls.WebBrowser's content to a static HTML literal?
Solution 4
You can use the Webbrowser control to achieve this.
Solution 5
You could use the WPF WebBroswer control.
You can then use NavigateToString to set the content of the WebBrowser Control to you HTML
Related videos on Youtube
Author by
Stef Dhollander
Updated on May 28, 2022Comments
-
Stef Dhollander almost 2 years
I've got a HTML string and I just want to show how it looks like.
How can I show this string so that it looks like an HTML page?