Painting on UWP app

Madhu 96 Reputation points
2019-11-19T08:42:33.077+00:00

Hi,

We are building a UWP app which needs the user to write on top of the content of our app using touch. For e.g it is similar to some teaching app on a big screen, and while teaching he wants to mark on some content etc..

The features related to painting is exactly similar to the Scenario3 here https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/SimpleInk/cs

But the only difference is here it writes on InkCanvas. In our case we need to write on top of out content. It can contain different content. So is it possible to put a transparent InkCanvas on top of our other content, so user will see our content, but can paint on the InkCanvas?

If that is not possible can you please tell me what are the other options we have to implement such feature.

Here is a example of what we want to do alt text

Thank You.

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

1 answer

Sort by: Most helpful
  1. Anonymous
    2019-11-19T09:14:52.677+00:00

    So is it possible to put a transparent InkCanvas on top of our other content, so user will see our content, but can paint on the InkCanvas?

    Hello,

    Sure, you could place InkCanvas on top of your content. But it will disable the lower control input behavior. So, I mean, you need add a method to make InkCanvas Collapsed when you want to touch the lower control.

    myInkCanvas.Visibility = Visibility.Collapsed
    

    In general, we often make a specific place to set InkCanvas , and it will not cover the other element.

    1 person found this answer helpful.

Your answer

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