-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Fixes related with Clipping #5224
Conversation
@@ -55,6 +55,7 @@ internal set | |||
|
|||
public void Dispose() | |||
{ | |||
DisposeClip(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow dynamically removing an existing Clipping (Set Clip = null
).
@@ -109,6 +108,8 @@ void DrawFillPath(ICanvas canvas, RectF dirtyRect, PathF path) | |||
|
|||
canvas.SaveState(); | |||
|
|||
ClipPath(canvas, path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix CanvasDrawingSession
exception.
Hi @jsuarezruiz , I have updated the RC 1 update with the ClipRadiusGallery sample of .NET MAUI sample gallery. Still the corner radius is not set correctly. Only the top left works. |
Description of Change
Fixes related with Clipping on Windows. Fixed exception
"After calling CanvasDrawingSession.CreateLayer, you must close the resulting CanvasActiveLayer before ending the CanvasDrawingSession"
and allow dynamically removing a Clipping.To test the changes launch the .NET MAUI Gallery, navigate to the Shapes page and use the Clipping samples.
Issues Fixed
Fixes #4250