To disable Windows Ink or adjust its behavior, you can follow these steps:
- Hide the "Ignore touch input when I’m using my pen" setting: If your device does not support simultaneous pen and touch input, you can hide this setting by creating a registry key. Set the following registry key as a DWORD and set it to 1:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Pen\HideSPTSettings - Adjust Input Device Types: In your application, if you are using an
InkCanvas, you can configure theInkPresenterto manage input types. You can set theInputDeviceTypesproperty to include only the types of input you want to support. For example, if you want to disable pen input, you can exclude it from the settings:
This will allow mouse input without interference from pen input.inkCanvas.InkPresenter.InputDeviceTypes = Windows.UI.Core.CoreInputDeviceTypes.Mouse; - Ensure Windows Ink is not interfering: If Windows Ink is causing issues with focus, ensure that your application is handling focus events correctly and that the
InkCanvasis not capturing focus when you intend to use the scrollbar.
By implementing these adjustments, you should be able to disable or properly configure Windows Ink to suit your needs.
References: