private static void OnLostFocus(object sender, RoutedEventArgs e) { var textBox = Keyboard.FocusedElement as TextBox; if (textBox == null || !GetShowTouchKeyboardOnTouchDown(textBox)) { TouchKeyboard.Hide(); } }
private void OnTouchKeyboardClick(object sender, RoutedEventArgs e) { if (((ToggleButton)sender).IsChecked == true) { TouchKeyboard.Show(); } else { TouchKeyboard.Hide(); } }
private static void OnClosed(object sender, EventArgs eventArgs) { ((Window)sender).Closed -= OnClosed; TouchKeyboard.Hide(); }