Search code examples
c#wpfxamlkeyboardtouch

On-Screen Keyboard WPF


I would like to invoke On-Screen Keyboard on button click in WPF. Is this possible and can I do this in C#/XAML?

I just want to have one button, that opens and another one to close the keyboard.


Solution

  • This will help you start the default On-Screen keyboard,hence there wont be any effort to create one.

    Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.System) + Path.DirectorySeparatorChar + "osk.exe");
    

    or just give : Process.Start("C:\\Windows\\System32\\osk.exe");

    or Process.Start("osk.exe");

    Not : if platform is 64 bit debug in x64

    osk = on screen keyboard !