Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Input of characters into RichTextBox too slow, how make more fast?

When I enter text using the keyboard, I see that the conclusion of characters in the editor window, a little behind the keystrokes, it do inconvenience in my work, how make that characters appear simultaneously with pressing keys.

like image 665
atott Avatar asked Jul 31 '10 19:07

atott


1 Answers

Check to see if you have any ICommands in that view with complicated CanExecute code. Everytime a property changes (and a lot of property changes in a RichTextBox) these ICommands will check if they are still able to execute - and if the logic is heavy - you'll pay in terms of performance.

Try to see if you can reproduce it in a Window with nothing but a RichTextBox - if it still slow - check to see if you have upgraded your video-drivers, Direct-X or have anything using all your system resources.

Last, but not least - see if you can reproduce on a friends computer or another computer - input in RichTextBox should be near instantaneous.

like image 139
Goblin Avatar answered Sep 22 '22 16:09

Goblin