I'm using the code from the following link: Displaying html from string in WPF WebBrowser control
It works well except when I delete the item containing the html, e.NewValue
becomes null
and I get an exception. Is there a way to return the WebBrowser control to a blank screen?