コード例 #1
0
        private static void OnLostFocus(object sender, RoutedEventArgs e)
        {
            var textBox = Keyboard.FocusedElement as TextBox;

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