wpf - Accelerated response of TextBox control -


i use in wpf textbox control chat window -> use typing chat messages textbox control. problem user typing little faster textbox reacts slowly. somehow accelerated response of textbox if possible.

any idead. difficult describe behevior, if have time try it, type in control.

edited:

here original part of textbox’s code:

    <textbox text="{binding path=rptext,mode=twoway, updatesourcetrigger=propertychanged}"              textwrapping="wrap"              verticalscrollbarvisibility="auto"               fontsize="14"              margin="2,2,2,2"               grid.row="3"              minheight="70"              micro:message.attach="[previewkeydown]=[action sendrp($eventargs)]"/> 

i omitted 2 way binding , previewkeydown , same opinion.

here modified code of textbox’s

    <textbox               textwrapping="wrap"              verticalscrollbarvisibility="auto"               fontsize="14"              margin="2,2,2,2"               grid.row="3"              minheight="70"/> 

but compare reacts typing in skype, gtalk , think stupid compare ms wpf control "textbox control" in skype or gtalk.

about asyc binding try it:

  <textbox text="{binding path=rptext,mode=twoway, updatesourcetrigger=propertychanged, isasync=true}"/> 

text writing in textbox control reverse.

for example typing: hello , in textbox constrol olleh :)

bindings , event handlers can slow down text box. have complex code bound text property? have event handlers slow down text box?

you can use asynchronous bindings, if can't afford reducing complexity of bound property's code. if process text box's text via event, bulk of operations in separate thread (so gui thread not slowed down).


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -