.NET Maui Canvas moves content on window resize

Giacomo Matteucci 1 Reputation point
2022-08-08T10:32:28.223+00:00

Hi,
I'm having troubles with canvas drawing for a MAUI app.
When I draw something on the canvas and resize the parent window, everything get moved from their initial position.
This is the position of the object before the resize

https://imgur.com/a/GLWoc48

This is after the resize

https://imgur.com/a/Il4iZR3

As you can see the block is moved to the left.
What could be the problem?
Thanks in advance

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,593 questions
{count} votes

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.