jlaroussi

KeyDown

Discussion created by jlaroussi on Mar 25, 2011
Latest reply on Mar 31, 2011 by jlaroussi
I am trying to capture key down event in my text box. In general, I am expecting the user to enter in the text box a number, which will be later queried and start my query operation after Enter key will be pressed. In C#  I will do it simple like this:

private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
   //do my query

            }
        }

But this solution does not work in Silverlight. Does anybody found a solution for this problem?

Outcomes