The Media Center Sandbox

Resources and discussion for developing experiences in the Windows Media Center platform.
Welcome to The Media Center Sandbox Sign in | Join | Help
in Search

Editabletext slow to recognise new characters

Last post 01-10-2010, 4:25 AM by eddyc. 4 replies.
Sort Posts: Previous Next
  •  12-11-2009, 1:19 PM 9502

    Editabletext slow to recognise new characters

    I have a settings page that uses Editabletext to allow entry of simple strings. From experimentation, I've noticed that my Editabletext.value seems to only get updated about 4 seconds after the user has finished typing. (Perhaps the timeout is related to triple-tap input in some way?)

    This is causing problems, because that's enough time for someone to type a change, navigate to the Save button with the cursor keys, and hit Enter.

    In this scenario, the value I read back from the Editabletext does not include the most recent typed changes, even though they are clearly visible on the screen - very disconcerting and confusing. If I do exactly the same thing, but wait 4 seconds on the Save button before pressing Enter, everything works fine.

    I added an Activity handler, and it gets called as soon as characters are typed -- but reading the Editabletext at that point doesn't reflect the change.

    I added a Submit handler, and reading from this DOES show all recent changes. Unfortunately, the Submit handler only seems to be called when the user presses ENTER on the control. If they navigate away using the arrow keys, it is not called.

    Has anyone else run into this? Any good workarounds? Am I missing something obvious? (I can post code, but it's essentially identical to the Editbox sample in the SDK).

    Eddy
  •  12-12-2009, 1:11 AM 9503 in reply to 9502

    Re: Editabletext slow to recognise new characters

    Bind to the TypingHandler's DisplayValue rather than the EditableText Value and the text will appear immediately.

    Cheers,
    Andrew
  •  12-13-2009, 3:09 PM 9506 in reply to 9502

    Re: Editabletext slow to recognise new characters

    That worked a treat Andy - thanks!

    Eddy
  •  01-07-2010, 10:35 PM 9523 in reply to 9502

    Re: Editabletext slow to recognise new characters

    hi
    i dont understand about  add a Submit handler
    how to do it
    i would like to passing value from Editabletext to vb code
    Could you show sample code?
    help me please

    seko
  •  01-10-2010, 4:25 AM 9524 in reply to 9523

    Re: Editabletext slow to recognise new characters

    Do you have some code already to produce the editable text box in your project? If you upload it somewhere, it will be easier to answer your question.

    Eddy
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems