UWP : Need to disable on-screen-keyboard on textbox click

Indudhar Gowda 426 Reputation points
2020-03-17T15:44:31.547+00:00

UWP : Need to disable on-screen-keyboard on textbox click

Because I need to Invoke third Party on-screen-keyboard.

Tried Below Code....But I was not able to disable on-screen-keyboard.

PreventKeyboardDisplayOnProgrammaticFocus="True" 

Both are getting Invoked Microsoft on-screen-keyboard and Third Party Keyboard.

Its not Working, But I tried ishittestvisible=false Its Working, But All Mouse Events are Blocked.

Any of the Solution is Fine..1. either disable on-screen-keyboard or 2.after making ishittestvisible=falseMouse Events Should Work.

Developer technologies | Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fay Wang - MSFT 5,231 Reputation points
    2020-03-18T07:10:47.677+00:00

    Hello,

    ​Welcome to our Microsoft Q&A platform!

    You can try to use CoreTextEditContext.InputPaneDisplayPolicy property, it indicates whether the input pane should be shown automatically when focus enters your text input control. The default value is Automatic, so the screen keyboard will display automatically, you can set it as Manual, and when you use InputPane.TryShow() method, the screen keyboard will display.

    CoreTextServicesManager manager = CoreTextServicesManager.GetForCurrentView();  
    CoreTextEditContext   _editContext = manager.CreateEditContext();  
    _editContext.InputPaneDisplayPolicy = CoreTextInputPaneDisplayPolicy.Manual;  
    

    Here is an official sample about how to control screen keyboard manually, you can refer to it.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.