I have an error return string that is sometimes plain text and sometimes HTML. My idea is to display that in a WebBrowser control. I found this article that showed how to assign a string as content for a webBrowser. This is my XAML:
<WebBrowser
local:BrowserBehavior.Html="{Binding ElementName=resultListBox, Path=SelectedItem.Details}"
Width="400" MinHeight="50" Margin="0">
</WebBrowser>
It works fine but plain strings are displayed in some times roman font. Is there a way to inject a style sheet into the WebBrowser control? Or is there a better solution to my problem in the first place?