1

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=false Mouse Events Should Work.

Drake Tram
  • 23
  • 3
  • You can set [InputPaneDisplayPolicy](https://learn.microsoft.com/en-us/uwp/api/windows.ui.text.core.coretexteditcontext.inputpanedisplaypolicy#Windows_UI_Text_Core_CoreTextEditContext_InputPaneDisplayPolicy) to Manual. – Raymond Chen Mar 17 '20 at 14:34
  • Can you please provide the code to implement this on textbox in UWP...You can take sample uwp Textbox and Disable on-screen-keyboard on click... – Drake Tram Mar 17 '20 at 15:40
  • Sorry, I misspoke. That's for custom text boxes you write yourself, not for modifying existing ones. You can listen for InputPane.Showing and immediately hide it. In the TouchKeyboard sample, add `sender.TryHide();` at [line 50](https://github.com/microsoft/Windows-universal-samples/blob/08d7459c552fe1065d3fe195b3fe2a5d7ec3b567/Samples/TouchKeyboard/cs/Scenario2_ShowHideEvents.xaml.cs#L50). – Raymond Chen Mar 18 '20 at 16:29

0 Answers0