@Jonathan Vardouniotis Sorry for the delay. This behavior is confirmed by the team as expected since there is a known issue with the rounded corner updates affecting InkCanvas. Please create a specific report to this link here: GitHub code repo
UWP InkCanvas works only on some devices but not others?
I'm using an inkCanvas in my UWP app, but for some reason users can draw in it with their sylus on some devices, but not others.
I haven't been able to find a pattern in which devices it does & doesn't work: in one case there was two users with identical devices, where one could draw in the inkcanvas with their stylus and the other couldn't.
Can anyone point me in a direction of how I might tackle this issue?
Universal Windows Platform (UWP)
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-23T07:15:50.16+00:00 Could you please reproduce this on your side? If not, maybe you could check some information like OS version, device type(desktop or laptop), steps to reproduce this behavior, and so on. This might be helpful to find out the reason.
-
Jonathan Vardouniotis 21 Reputation points
2021-08-23T09:53:57.72+00:00 Thanks @Roy Li - MSFT ,
I have two identical Surfacebook 2's, with the same software version, but only one has this issue. I'm not sure why. Do you have any suggestions?
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-24T01:23:40.457+00:00 Are they in the same Windows 10 version? Is there any error or exception when you failed to use the inkcanvas?
-
Jonathan Vardouniotis 21 Reputation points
2021-08-24T14:00:50.6+00:00 @Roy Li - MSFT , they are in the same Windows 10 version. There is no error or exception when trying to use the inkcanvas on the device that doesn't work. Instead, using a stylus or the draw with touch mode just writes nothing.
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-25T03:20:51.833+00:00 Does it work using the mouse? It's hard to tell why it happens. Are there any differences in settings between both of the device?
-
Jonathan Vardouniotis 21 Reputation points
2021-08-25T03:44:20.047+00:00 @Roy Li - MSFT , I've programmed in different functionality for using a mouse input, that works fine.
As far as I can tell, all the settings related to stylus, pens and windows ink appear to be the same. Both devices also have the most recent updates available to them installed. -
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-25T06:37:19.533+00:00 Could you please give more information about it works using a mouse? Is it in the same scenario that stylus or pens don't work? I mean, for example, when the app is running, the pen does not work but the mouse could draw in the same inkcanvas.
-
Jonathan Vardouniotis 21 Reputation points
2021-08-25T12:46:48.797+00:00 @Roy Li - MSFT , I'll briefly explain a bit more about the app to answer your question. The app displays images of PDFs in a side-by-side view.
1. When a user clicks with a mouse or taps with their finger on the left or right side of the screen, it turns the pages of the document via two fullscreen transparent buttons that only respond to mouse or touch input.
2. When a user touches the screen with their stylus (or with their finger when the draw with touch button is enabled) it should start inking in an inkCanvas contained within a scrollviewer over the top of the document page's image. In this case, the page turning buttons are also temporarily disabled.Point 1 always works, no matter what. Point 2 only works on some devices and not others. (Even if the two devices are the same make and model, it is possible that one will work, and the other won't.
Removing and re-installing the app, performing system updates, and comparing settings between devices that do and don't work are not able to resolve this issue.
Hope that clarifies some of your questions, and perhaps points towards something I've missed.
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-26T01:51:04.963+00:00 thank you for sharing this information. I'll consult the team to check this behavior.
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-26T06:29:18.753+00:00 Could you please share the code snippet you are using? Just the necessary code that is used to reproduce issues will be enough.
-
Jonathan Vardouniotis 21 Reputation points
2021-08-26T07:54:06.603+00:00 Hi @Roy Li - MSFT , here are the relevant code snippets:
Update - I can't seem to upload any code samples here. Everytime I press submit on the reply containing a code sample, this website doesn't respond.
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-26T10:01:18.63+00:00 Well, would you like to share with me a minimal sample that could reproduce your issue on Github or OneDrive? Please remember to delete all the sensitive information before you share the sample with me.
-
Jonathan Vardouniotis 21 Reputation points
2021-08-27T00:43:02.037+00:00 @Roy Li - MSFT ,
I've tried to strip out everything non-essential to create a minimal example.
Here's a link to the file in OneDrive: [s!ArzXzIvFvBKZh8c1W_HuMuxwySHtjw][1] -
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-27T05:57:39.41+00:00 I checked your code. There are many places using some images. Are they required for reproducing this issue? Or I can just ignore them and just keep a
single canvas in the XAML? -
Jonathan Vardouniotis 21 Reputation points
2021-08-27T06:34:44.207+00:00 @Roy Li - MSFT , you should be able to ignore them. They were only left in for a little bit of context, and to make sure I didn't remove too much.
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-08-27T08:43:36.187+00:00 I got that. I'll share the sample with the team and take a look at this. I've also deleted the link due to the police.
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-09-13T01:21:32.04+00:00 @Jonathan Vardouniotis Our team is tracking this and there is another that we want to know. Are you using WinUI 2.6 as well? ? There is a known issue with the rounded corner updates effecting InkCanvas.
-
Jonathan Vardouniotis 21 Reputation points
2021-09-13T01:27:06.857+00:00 @Roy Li - MSFT , thanks for following through on this one, I've had increasing numbers of customers contacting support over the broken functionality in the past week. I am using WinUI 2.6, so is this what's causing the issue then?
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-09-13T01:36:44.717+00:00 We haven't confirmed this but we are trying to narrow down the issue now. I'll tell the team about that and come back when I get more responses.
Sign in to comment
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-09-20T06:24:37.877+00:00 -
Jonathan Vardouniotis 21 Reputation points
2021-09-20T06:28:14.523+00:00 Thanks, @Roy Li - MSFT . I'll create a report there. The issue I've had also affects Windows 10 customers, where this toolkit is used for the App but they don't have rounded window corners yet. Can you confirm it is this same bug affecting them also?
-
Roy Li - MSFT 33,491 Reputation points • Microsoft Vendor
2021-09-20T06:34:41.107+00:00 Please add this scenario into the report you created in the Github as well.
Sign in to comment -