Consider a XAML TextBox in Win Phone 7.
<TextBox x:Name="UserNumber" />
The goal here is that when the user presses the Enter button on the on-screen keyboard, that would kick off some logic to refresh the content on the screen.
Enter
I'd like to have an event raised specifically for Enter. Is this possible?
A straight forward approach for this in a textbox is
private void textBox1_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { Debug.WriteLine("Enter"); } }
2.1m questions
2.1m answers
60 comments
57.0k users