Skip to content

[Android] [iOS] EvenOdd fill rule is not respected in Path.Data #6703

Closed

Description

@davidjohnoliver

What would you like to be added:

Support for Path fill rule, as in following XAML:

		<Grid VerticalAlignment="Center"
			  Margin="5"
			  BorderBrush="Brown"
			  Background="Beige"
			  BorderThickness="1"
			  HorizontalAlignment="Center">
			<Border x:Name="EmptyRect2"
					UseLayoutRounding="False"
					Height="91"
					Width="91" />
			<Path x:Name="EvenOddPath"
				  Data="F0M0,0L0,60 90,60 90,30 30,30 30,90 60,90 60,0z"
				  StrokeThickness="1"
				  Stroke="Black"
				  Fill="Green" />
		</Grid>

On Windows and WASM, the central square of the figure will be unfilled (beige) according to even-odd filling (as specified by F0 prefix in Data). On Android and iOS it will be filled (green).

Why is this needed:

This was noticed in the course of fixing a related regression on WASM. When it's implemented, the PathTests.Test_FillRule() test should be reenabled on those platforms.

Not tested on Skia or macOS.

For which Platform:

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

Anything else we need to know?

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    difficulty/medium 🤔
    project/shapes-brushes 🔶
    and removed
    difficulty/tbd
    on Aug 9, 2021
  2. self-assigned this
    on Aug 16, 2021
  3. added this to the 3.10 milestone on Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/medium 🤔kind/enhancementproject/shapes-brushes 🔶triage/untriaged

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions