Home / WPF / HMI Controls / WPF Touch Keyboard

10 comments

  1. how i can use it in a UserControl

  2. With a minor modification to the constructor of both the Keypad and VirtualKeyboard classes it is possible to preserve the value of the TextBox between calls. In other words, touching the bound TextBox would pop-up the KeyPad or VirtualKeyboard with the current TextBox value for Modification/Edit as opposed to the current behavior where the result is set to an empty string requiring the operator re-enter the complete text.

    At the end of each respective constructor, change…
    Result = “”;
    to…
    Result = owner.Text;

    VirtualKeyboard.xaml.cs (line 69) and Keypad.xaml.cs (line 50) as referenced by the above linked example source.

    A further enhancement to the Keypad/VirtualKeyboard classes for “preserved edit” would allow for cursor control over the insert/delete position within the string allowing edits mid-string. Though cursor/caret management is beyond the scope of this particular reply.

    Regards

  3. can u provide me the code for usercontrol how it can be used between application

  4. is there an easy way to target the keyboard at all textboxes rather than individual textboxes in behind code. thanks Chuck R

  5. I know it 2018 now am maybe you stop maintain this project but can you say how to used this code with user control in wpf

  6. Not sure if anyone still responds to messages here but how would I go about sending keypresses to the control (like a textbox) as they occur rather than having to hit “return”?

  7. If I have to use in Page instead of window how do I do it, I am having error ” Argument 2: cannot convert from ‘GEA_HMI.View.Page1’ to ‘System.Windows.Window'”

Leave a Reply