private void roundingInt_KeyUp(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { if (NumOfValuesEntering_SummEr.Text == "") { NumOfValuesEntering_SummEr.AllowFocusOnInteraction = true; NumOfValuesEntering_SummEr.Focus(FocusState.Keyboard); } else if (confProbEnteringSE.Text == "") { confProbEnteringSE.AllowFocusOnInteraction = true; confProbEnteringSE.Focus(FocusState.Keyboard); } else if (marginErrorEntering.Text == "") { marginErrorEntering.AllowFocusOnInteraction = true; marginErrorEntering.Focus(FocusState.Keyboard); } else if (roundingIntEntering.Text == "") { roundingIntEntering.AllowFocusOnInteraction = true; roundingIntEntering.Focus(FocusState.Keyboard); } else { summaryErrorOutput.Focus(FocusState.Programmatic); } } if (e.Key == Windows.System.VirtualKey.Left) { marginErrorEntering.AllowFocusOnInteraction = true; marginErrorEntering.Focus(FocusState.Keyboard); } }
private void ConfProbSE_KeyUp(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter || e.Key == Windows.System.VirtualKey.Right) { marginErrorEntering.AllowFocusOnInteraction = true; marginErrorEntering.Focus(FocusState.Keyboard); } if (e.Key == Windows.System.VirtualKey.Left) { NumOfValuesEntering_SummEr.AllowFocusOnInteraction = true; NumOfValuesEntering_SummEr.Focus(FocusState.Keyboard); } }