Blog Content

    티스토리 뷰

    28.SilverLight3 - Geometry : GrometryGroup

    반응형



    MainPage.xaml

    [그림 28-1]


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

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

                <Path.Data>

                    <GeometryGroup>

                        <PathGeometry>

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

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

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

                            </PathFigure>

                        </PathGeometry>

                        <PathGeometry>

                            <PathGeometry.Transform>

                                <RotateTransform Angle="-15"></RotateTransform>

                            </PathGeometry.Transform>

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

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

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

                            </PathFigure>

                        </PathGeometry>

                    </GeometryGroup>

                </Path.Data>

            </Path>

    </Grid>



    반응형

    Comments