Blog Content

    티스토리 뷰

    29.SilverLight3 - Geometry : PathData ( 미니언어 )

    반응형



    MainPage.xaml

    [그림 29-1]


    <Grid x:Name="LayoutRoot" Background="White">

            <Path Stroke="Black" StrokeThickness="5" Fill="Red">

                <Path.Data>

                    <PathGeometry>

                        <PathFigure StartPoint="20, 20" IsClosed="True">

                            <LineSegment Point="20, 90"></LineSegment>

                            <LineSegment Point="90, 90"></LineSegment>

                        </PathFigure>

                    </PathGeometry>

                </Path.Data>

            </Path>

           

            <!-- : ( )

                msdn , -->

            <Path Stroke="Black" StrokeThickness="5" Fill="Red"

                  Data="M 120,120 L 120,200 L 200,200 Z">

            </Path>

    </Grid>



    반응형

    Comments