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"); } }
1.4m articles
1.4m replys
5 comments
57.0k users