private void TextBoxControl_KeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { Flip.Focus(FocusState.Programmatic); } }
private void TextBox_KeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { if (UIViewSettings.GetForCurrentView().UserInteractionMode == UserInteractionMode.Mouse) { Accept_Click(null, null); } Flip.Focus(FocusState.Programmatic); e.Handled = true; } }