When using WPF InkCanvas, the width and height values ​​of the stroke do not work properly on the touch monitor.

HoneyBee 186 Reputation points
2022-11-28T09:05:45.75+00:00

It's really simple, I added an InkCanvas in WPF and modified the Stroke size of DefaultAttributes.

If you run the program and use the mouse, a stroke is drawn with the corrected size.

However, the location matches on the connected touch monitor, but the stroke size is not drawn properly.

I'm drawing with a stylus pen
Is it related to the DPI issue?

Is there any way to simply check and correct this difference?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,669 questions
{count} votes

2 answers

Sort by: Most helpful
  1. JACK MAC 1 Reputation point
    2022-11-28T10:17:41.873+00:00

    Did I hear a 9iner in there?


  2. JACK MAC 1 Reputation point
    2022-11-29T10:50:03.86+00:00

    I may have been also.

    0 comments No comments