unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.48k stars 690 forks source link

StrokeDashArray does not behave the same on all platforms #16686

Open agneszitte opened 3 weeks ago

agneszitte commented 3 weeks ago

Current behavior

StrokeDashArray does not behave the same on all platforms

Expected behavior

StrokeDashArray should behave the same on all platforms

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

Related XAML markup:

<StackPanel Orientation="Vertical" Spacing="10" Margin="10">
    <Rectangle Width="100" Height="100"  Stroke="Red"  StrokeThickness="3" />
    <Rectangle  
        IsHitTestVisible="False" 
        Width="100"
        Height="100"
        Stroke="Red"
        StrokeThickness="2" 
        StrokeDashArray="2,2" />
</StackPanel>

Workaround

N/A

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

"Uno.Sdk": "5.2.112"

Affected platforms

WebAssembly, Android, iOS, Mac Catalyst, Skia (WPF), Skia (Linux X11), Skia (macOS), Skia (Linux Framebuffer), Skia (GTK)

IDE

Visual Studio 2022

IDE version

17.9.6

Youssef1313 commented 3 weeks ago

For Skia:

https://github.com/unoplatform/uno/blob/cfb4dfdcb333939de5e777d5d3fec8d260fbacc0/src/Uno.UI.Composition/Composition/CompositionSpriteShape.skia.cs#L59-L60

agneszitte commented 2 weeks ago

cc @MartinZikmund