如何使用GeometryDrawing在WPF中绘制“齿轮”形状

时间:2019-02-10 15:04:38

标签: xaml

我在WPF中相对较新。如何在XAML中使用GeometryDrawing绘制“齿轮”形状。例如:

<GeometryDrawing Brush="Gray"
                 Geometry="--coordinate--">
</GeometryDrawing>

或:

<GeometryDrawing.Geometry>
    <GeometryGroup>
        <PathGeometry>
            <PathFigure StartPoint="--start point--" IsClosed="True">
                <PolyLineSegment Points="--points--"/>
            </PathFigure>
        </PathGeometry>
    </GeometryGroup>
</GeometryDrawing.Geometry>

我需要获得的形状显示在下图:“齿轮”。

enter image description here

任何帮助将不胜感激。

0 个答案:

没有答案
相关问题