I have a simple example for the HtmlViewer.
I just have a button that sets the HtmlCode Property in hopes it would render it likethe 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.
Did you set the Windowless parameter on your Silverlight application to "true"?
Devin
What does that do actually ?
FYI, Windowless still won't help you with cross-domain scenarios.
You need another param tag in there: <param name="enablehtmlaccess" value="true"/>
http://msdn.microsoft.com/en-us/library/cc838264(v=vs.95).aspx
The XamHtmlViewer control simply overlays a DIV element on top of the Silverlight plugin. In order for HTML to overlap the plugin, it must be Windowless.
http://msdn.microsoft.com/en-us/library/cc838156(VS.95).aspx