Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: RichTextBox with RtfFormatter throws System.FormatException on keystrokes

$
0
0
Hey,

i recently started using the Extended WPF Toolkit and noticed when i use the RichTextBox with the RtfFormatter, mscorlib.dll throws a "System.FormatException" on every keystroke. When using the PlainTextFormatter or the XamlFormatter this will not happen. I couldnt track down the reason why this is happening, but it is easy to reproduce (just create a RichTextBox with a RtfFormatter). I don't know if its a bad thing for my application performance when so many exceptions are thrown but it seems wrong. Can someone explain me why this is happening or how to fix it? I would like to save the content of the RichTextBox as an rtf formated string without getting exceptions on every keystroke.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>