i doing a project with the wpf richtextbox control. I’m saving the textfile with the xamlwriter class.
When i’m trying to load the file everything is working really well except if there are html entities in the file. Because the overloaded XamlReader class only excepts a stream or a XmlReader, the html entities ( in this case ‘<‘ (<) and ‘>’ (>) are expanded and loaded into the xamlreader where an exception occurs because it thinks ‘<‘ is an empty node.
Are there any known workarounds?
Thanks!
Ok.. got it. Loaded the xaml as a stream like so: