日期:2014-05-18  浏览次数:20938 次

wpf 想要画一个对话框 可是尾巴那里的色不会填。。。。
尾巴那里色填不进去啊。。是不是我的思路错误的。。 纠结。。



代码:
C# code
 <Canvas Background="Bisque">
            <Path Grid.Row="1" Stroke="Black" StrokeThickness="6" Fill="Purple">
                <Path.Data>
                    <PathGeometry>
                        <PathGeometry.Figures>
                            <PathFigure StartPoint="150,180">
                                <ArcSegment IsLargeArc="True" Point="180,165" Size="80,50" SweepDirection="Clockwise"/>
                            </PathFigure>
                            <PathFigure StartPoint="150,180">
                                <LineSegment Point="200,200"></LineSegment>
                            </PathFigure>
                            <PathFigure StartPoint="180,165">
                                <LineSegment Point="200,200"></LineSegment>
                            </PathFigure>
                        </PathGeometry.Figures>
                    </PathGeometry>
                </Path.Data>
            </Path>
        </Canvas>


------解决方案--------------------
你如果使用的图形不是封闭的图形,Fill不起作用。