Ejemplo n.º 1
0
        private static void OnLostFocus(object sender, RoutedEventArgs e)
        {
            var textBox = Keyboard.FocusedElement as TextBox;

            if (textBox == null || !GetShowTouchKeyboardOnTouchDown(textBox))
            {
                TouchKeyboard.Hide();
            }
        }
Ejemplo n.º 2
0
 private void OnTouchKeyboardClick(object sender, RoutedEventArgs e)
 {
     if (((ToggleButton)sender).IsChecked == true)
     {
         TouchKeyboard.Show();
     }
     else
     {
         TouchKeyboard.Hide();
     }
 }
Ejemplo n.º 3
0
 private static void OnClosed(object sender, EventArgs eventArgs)
 {
     ((Window)sender).Closed -= OnClosed;
     TouchKeyboard.Hide();
 }