Interaction logic for virtual_numpad.xaml
Наследование: System.Windows.Controls.UserControl
Пример #1
0
        public static void ShowKeyboard(IVirtualKeyboardInjectable targetWindow, ref virtual_numpad myPointerToIt)
        {
            if (myPointerToIt != null)
            {

            }
            else
            {
                myPointerToIt = new virtual_numpad();
                myPointerToIt.ShowIt(targetWindow);
            }
        }
Пример #2
0
 void submit()
 {
     if (numpad_frame != null)
     {
         window_manager.main_canvas.Children.Remove(numpad_frame);
         numpad_frame = null;
         numpad = null;
     }
     if (submit_clicked != null) submit_clicked();
 }
Пример #3
0
 private void CreateNumpadKeyboard()
 {
     numpad_frame = new ContentControl();
     numpad = new virtual_numpad();
     numpad.number_hit_handler = new number_hit(number_entered);
     numpad.submit_hit_handler = new submit_hit(submit);
     numpad.backspace_hit_handler = new backspace_hit(backspace);
     this.numpad_frame.Content = numpad;
     numpad.parent_frame = numpad_frame;
     this.numpad_frame.Background = new SolidColorBrush(Colors.White);
     window_manager.main_canvas.Children.Add(numpad_frame);
     this.UpdateLayout();
     this.numpad_frame.Visibility = System.Windows.Visibility.Collapsed;
 }