Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
HtmlViewer doesn't render HtmlCode

I have a simple example for the HtmlViewer.

I just have a button that sets the HtmlCode Property in hopes it would render it like
the example on your page. But it does nothing. What am I doing wrong.

 private void Button_Click(object sender, RoutedEventArgs e)
   this.XamHtmlViewer.SourceUri = null;
   this.XamHtmlViewer.HtmlCode = "<html><body>Hello World!</body></html>";

I have attached the example.