Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit d229b60

Browse files
committed
Polygon demo updates.
1 parent 7adb25f commit d229b60

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

UserInterface/ShapesDemos/ShapesDemos/Views/PolygonDemoPage.xaml

+6-14
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,26 @@
99
<Polygon Points="40,10 70,80 10,50"
1010
Fill="AliceBlue"
1111
Stroke="Green"
12-
StrokeThickness="5"
13-
HeightRequest="100"
14-
WidthRequest="200" />
12+
StrokeThickness="5" />
1513
<Label Text="Polygon with dashed stroke" />
1614
<Polygon Points="40,10 70,80 10,50"
1715
Fill="AliceBlue"
1816
Stroke="Green"
1917
StrokeThickness="5"
2018
StrokeDashArray="1,1"
21-
StrokeDashOffset="6"
22-
HeightRequest="100"
23-
WidthRequest="200" />
19+
StrokeDashOffset="6" />
2420
<Label Text="EvenOdd polygon" />
25-
<Polygon Points="0 48, 0 150, 96 150, 96 0, 200 0, 200 100, 48 96, 48 192, 144 192 144 48"
21+
<!-- FillRule doesn't need to be set, because EvenOdd is the default. -->
22+
<Polygon Points="0 48, 0 144, 96 150, 100 0, 192 0, 192 96, 50 96, 48 192, 150 200 144 48"
2623
Fill="Blue"
27-
FillRule="EvenOdd"
2824
Stroke="Red"
29-
StrokeThickness="3"
30-
HeightRequest="200"
31-
WidthRequest="200" />
25+
StrokeThickness="3" />
3226
<Label Text="NonZero polygon" />
3327
<Polygon Points="0 48, 0 144, 96 150, 100 0, 192 0, 192 96, 50 96, 48 192, 150 200 144 48"
3428
Fill="Black"
3529
FillRule="Nonzero"
3630
Stroke="Yellow"
37-
StrokeThickness="3"
38-
HeightRequest="200"
39-
WidthRequest="200" />
31+
StrokeThickness="3" />
4032
</StackLayout>
4133
</ScrollView>
4234
</ContentPage>

0 commit comments

Comments
 (0)