Skip to content

Fix issue updating the Path Data - #13816

Merged
rmarinho merged 3 commits into
mainfrom
fix-13802
Mar 15, 2023
Merged

rmarinho merged 3 commits into
mainfrom
fix-13802

Conversation

@jsuarezruiz

Copy link
Copy Markdown
Contributor

Description of Change

This PR include changes to correctly update the Path Data and invalidate (redraw) it.

To validate the changes can sue the added sample to the Shapes pages from the .NET MAUI Gallery.
fix-update-path-data
Or use the added device test.
image

Issues Fixed

Fixes #13802

@jsuarezruiz jsuarezruiz added t/bug Something isn't working area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing labels Mar 10, 2023
@jsuarezruiz
jsuarezruiz requested a review from PureWeen March 15, 2023 15:04
public static void MapData(IShapeViewHandler handler, Path path)
{
handler.PlatformView?.InvalidateShape(path);
handler.PlatformView?.UpdateShape(path);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was invalidating the Canvas but not updating the Shape properties, so mostly redrawing the same. With the changes, the Shape get the changes and redraw.

@rmarinho
rmarinho merged commit 0b5f036 into main Mar 15, 2023
@rmarinho
rmarinho deleted the fix-13802 branch March 15, 2023 21:28
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 13, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! 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-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! t/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Path does not update its layout when Data is modified

4 participants