Interaction logic for virtual_numpad.xaml
Inheritance: System.Windows.Controls.UserControl
        public static void ShowKeyboard(IVirtualKeyboardInjectable targetWindow, ref virtual_numpad myPointerToIt)
        {
            if (myPointerToIt != null)
            {

            }
            else
            {
                myPointerToIt = new virtual_numpad();
                myPointerToIt.ShowIt(targetWindow);
            }
        }
Example #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();
 }
Example #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;
 }