As part of a project, I need to display HTML content in Silverlight. The content is simply HTML text with a few images.
I am evaluating different approaches including using the HtmlPlaceholder and converting the content (on demand) into a RadDocument (trying both client and server side).
In using the HtmlPlaceholder I am experiencing some odd behavior:
Setting HtmlSource
-Loads slower, sometimes with an appreciable delay where nothing happens
-Mouse scroll does not work. Occasionally scroll works at first.
Setting SourceUrl
-Loads fast
-Mouse scroll works
I was wondering if this behavior is normal.
In this application the content comes from a WCF service. My preference would be set the HtmlSource simply because it seems cleaner. The content simply binds to my view model. When the model changes, so does the HtmlPlaceholder.
I could easily display the Html content in a server side Aspx page and set the SourceUrl, if that approach is faster. But I thought I would at least see if the behavior I am experiencing is normal or something that can be worked through.