RichTextBox lags really hard (at least under Windows7 64 bit)- I found several topics on many programming boards, describing this exact problem, but no solution. There's even a bug report on this issue for the WPF team. Some people suggested that setting SpellCheck.IsEnabled to false may help, but in my case it didn't... So - are there any good alternatives for the RichTextBox control? I need to be able to highlight specific words in large amounts of text and do this dynamically (during user typing, changing text).

有帮助吗?

解决方案

You can try AvalonEdit (http://avalonedit.net). Although it only supports text, it may be what you are looking for.

I have tried it and it is blazingly fast compared to the built-in WPF rich text box.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top