<Window x:Class="_12_形状画刷和变换_5多边形.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Icon="public/003540AH4M72.jpg" Title="12-形状画刷和变换-5多边形" Height="450" Width="800">
    <Canvas>
        <Label>Polygon 和 Polyline都有 FillRule属性，默认设置为 EvenOdd </Label>

        <Polyline Stroke="Red" Points="10 110,  25 210" StrokeThickness="5" FillRule="Nonzero" />

        <Polygon Stroke="Aqua" Points="15,200 68,70 110,200 0,125 135,125" StrokeThickness="2" Fill="Yellow"
                 FillRule="EvenOdd" Canvas.Left="100" />

        <Polygon Stroke="HotPink" Points="15,200 68,70 110,200 0,125 135,125" StrokeThickness="2" Fill="Chartreuse"
                 FillRule="Nonzero" Canvas.Left="260" />
    </Canvas>
</Window>