locked
XAML Textbox - keydown triggered twice key.enter RRS feed

  • Question

  • the main reason what bothers me is that the textbox responds to enter twice. So it create two new linesbreak instead of one.

    similar problem is described in this topic <a href="http://social.msdn.microsoft.com/Forums/windowsapps/en-US/734d6c7a-8da2-48c6-9b3d-fa868b4dfb1d/action?threadDisplayName=c-textbox-keydown-triggered-twice-in-metro-applications">msdn</a>.  I can´t reproduce problem in different solutions. Is there any way how find out from which place is the second event triggered? Or do you have any suggestions, how to solve my problem?

    Tuesday, May 20, 2014 10:49 AM

Answers

  • I don't have any suggestions beyond what was in the original post: predict and keep a counter.

    If you can break in the debugger when you get the KeyDown you may be able to find more information about where it's coming from.

    --Rob

    Tuesday, May 20, 2014 9:50 PM
    Moderator