Skip to content
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

Merged
merged 1 commit into from
Mar 16, 2022
Merged

Conversation

jsuarezruiz
Copy link
Contributor

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.

clipping-windows

To test the changes launch the .NET MAUI Gallery, navigate to the Shapes page and use the Clipping samples.

Issues Fixed

Fixes #4250

@jsuarezruiz jsuarezruiz added platform/windows 🪟 area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing labels Mar 11, 2022
@@ -55,6 +55,7 @@ internal set

public void Dispose()
{
DisposeClip();
Copy link
Contributor Author

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);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix CanvasDrawingSession exception.

@mattleibow mattleibow merged commit af29f5d into main Mar 16, 2022
@mattleibow mattleibow deleted the fix-clipping-windows branch March 16, 2022 07:59
@PaulAndersonS
Copy link
Contributor

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.

MicrosoftTeams-image

@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@samhouts samhouts added the fixed-in-6.0.300-rc.1 Look for this fix in 6.0.300-rc.1! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-6.0.300-rc.1 Look for this fix in 6.0.300-rc.1! platform/windows 🪟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows]Clip property is not working properly in preview 12
5 participants