Replies: 1 comment 2 replies
-
try IsClippedToBounds, canvas also have a clip method |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an application I'm porting from Xamarin.Forms to MAUI. Previously I had my own device specific graphics routines that did drawing and transformation of vectors into a Canvas. The GraphicsView is great because I don't need to do that any more, however my previous app also had zooming and panning of the objects. When I attempted the pan gestures for the GraphicsView it no longer clips the graphics to the drawing area as defined. Is there a way to force clipping of the graphics to the graphicsview window?
Here is a display of what happens on Windows, the graphics just move outside the defined window - not what I would normally expect.

Beta Was this translation helpful? Give feedback.
All reactions