Ejemplo n.º 1
0
        private void initKeyboard()
        {
            keyboard = this.CustomKeyboard;
            keyboard.setFocusedElement(focusedElement);

            //OPTIONAL
            keyboard.setCustomKeyboardListener(this);
        }
Ejemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.CustomKeyboardController = ((WPFKeyboard.Keyboard.KeyboardController)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     
     #line 11 "..\..\..\Sample\KeyboardSample.xaml"
     this.MainGrid.TouchDown += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.NotFocusableElement_TouchDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.SampleTextBox = ((Microsoft.Surface.Presentation.Controls.SurfaceTextBox)(target));
     
     #line 23 "..\..\..\Sample\KeyboardSample.xaml"
     this.SampleTextBox.TouchUp += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.TextBox_TouchUp);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 26 "..\..\..\Sample\KeyboardSample.xaml"
     ((Microsoft.Surface.Presentation.Controls.SurfaceTextBox)(target)).TouchUp += new System.EventHandler<System.Windows.Input.TouchEventArgs>(this.TextBox_TouchUp);
     
     #line default
     #line hidden
     return;
     case 4:
     this.CustomKeyboard = ((WPFKeyboard.Keyboard.KeyboardController)(target));
     return;
     }
     this._contentLoaded = true;
 }