日期:2014-05-17  浏览次数:20855 次

WPF,请问这个几何图形如何设置线条的粗细

  <Canvas Height="295" Name="canvas1" Width="418">
        <Path Stroke="Blue" >
            <Path.Data>
                <PathGeometry>
                    <PathFigure IsClosed="True" StartPoint="10,100">
                        <LineSegment Point="100,100" />
                        <LineSegment Point="100,50" />
                    </PathFigure>
                </PathGeometry>
            </Path.Data>
        </Path>
    </Canvas>





请问这个几何图形如何设置线条的粗细?

------解决方案--------------------
下面红色标记了的就是你所要的。
<Canvas Height="295" Name="canvas1" Width="418">
            <Path Stroke="Blue" StrokeThickness="5">
                <Path.Data>
                    <PathGeometry>
                        <PathFigure IsClosed="True" StartPoint="10,100">
                            <LineSegment Point="100,100"/>