microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Inkcanvas masking control issue

Open duwenlong2 opened this issue 9 months ago • 4 comments

This is all the code. Inkcanvas wet ink will cover all controls. Is there a good solution to this problem? It involves the issue of what elements other controls use to carry. Can you give some suggestions?

The animation is the actual effect

<Grid>
    <InkCanvas  x:Name="inkcanvas"/>
    <Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
</Grid>

Image

duwenlong2 avatar Mar 23 '25 14:03 duwenlong2

I noticed that the code was caused by the use of inkDeskTopHost. How should I fix this issue? Or suppose I don't use the current inkcanvas. Who can give some suggestions for implementing an incanfas with similar performance to UWP? I can work together with AI, but I currently lack some guiding advice.

duwenlong2 avatar Mar 23 '25 15:03 duwenlong2

Hi @duwenlong2 Can you help us by providing repro project it would help us to investigate it better? Thanks

snigdha011997 avatar Mar 26 '25 10:03 snigdha011997

How can we contact each other?

duwenlong2 avatar Mar 27 '25 08:03 duwenlong2

I noticed that the code was caused by the use of inkDeskTopHost. How should I fix this issue? Or suppose I don't use the current inkcanvas. Who can give some suggestions for implementing an incanfas with similar performance to UWP? I can work together with AI, but I currently lack some guiding advice.

It works normally with InkPresenter.InputProcessingConfiguration then InkPresenter.UnprocessedInput.PointerPressed and so on to let default drawing or not (used for lasso effect to select strokes for example), but I could not make it work directly in WinUI But it works by embedding UWP InkCanvas with XAML Islands

castorix avatar Jun 10 '25 05:06 castorix