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

[Desktop] PathGeometry filled up wrongly #18694

Open
kucint opened this issue Nov 5, 2024 · 0 comments · May be fixed by #18725
Open

[Desktop] PathGeometry filled up wrongly #18694

kucint opened this issue Nov 5, 2024 · 0 comments · May be fixed by #18725
Assignees
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/shapes-brushes 🔶 Categorizes an issue or PR as relevant to shapes and brushes

Comments

@kucint
Copy link

kucint commented Nov 5, 2024

Current behavior

Draw an arrow on Canvas as follow:

<Canvas>
    <Path Stroke="Black" StrokeThickness="1" Fill="LawnGreen" >
        <Path.Data>
            <PathGeometry>
                <PathGeometry.Figures>
                    <PathFigure StartPoint="100,100" IsClosed="False" IsFilled="False">
                        <PathFigure.Segments>
                            <BezierSegment Point1="150, 100"
                                     Point2="150, 200"
                                     Point3="200, 200"/>
                        </PathFigure.Segments>
                    </PathFigure>
                    <PathFigure StartPoint="220, 200" IsClosed="True" IsFilled="True">
                        <PathFigure.Segments>
                            <LineSegment Point="200, 190"/>
                            <LineSegment Point="200, 210"/>
                        </PathFigure.Segments>
                    </PathFigure>
                </PathGeometry.Figures>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>

On Desktop Framework the path is wrongly filled:

image

On WindowsSDK Framework the path is working fine:

image

Expected behavior

The Desktop Framework shall behave exactly as WindowsSDK Framework.

How to reproduce it (as minimally and precisely as possible)

MINIMAL REPRO PROJECT: UnoPathOnCanvasApp.zip

Workaround

none

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

"Uno.Sdk": "5.5.32"

Affected platforms

Skia (WPF)

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@kucint kucint added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Nov 5, 2024
@jeromelaban jeromelaban added the project/shapes-brushes 🔶 Categorizes an issue or PR as relevant to shapes and brushes label Nov 5, 2024
@ramezgerges ramezgerges self-assigned this Nov 5, 2024
@MartinZikmund MartinZikmund added difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/shapes-brushes 🔶 Categorizes an issue or PR as relevant to shapes and brushes
Projects
None yet
4 participants