WPF Application Typing in Custom TextBox CPU Jumping from 3 to 80 percent
Posted
by azamsharp
on Stack Overflow
See other posts from Stack Overflow
or by azamsharp
Published on 2010-05-26T15:06:25Z
Indexed on
2010/05/26
18:51 UTC
Read the original article
Hit count: 419
wpf
|Performance
I have created a RichTextBox called SharpTextBox which indicates and limits the number of characters that can be typed in it. The implementation is shown in the following link:
Anyway when I start typing in the TextBox it goes from 3% to 78%. The TextBox updates the Label control which shows the number of characters remaining for the count.
How can I increase the performance of the textbox?
UPDATE:
I read there seems to be some problem with the TextRange.Text property which kills performance.
© Stack Overflow or respective owner