MainPage.xaml |
[그림 25-1] <Grid x:Name="LayoutRoot" Background="White"> <Path Fill="Red" Stroke="Black" StrokeThickness="5"> <Path.Data> <PathGeometry> <PathFigure StartPoint="20,20" IsClosed="True"> <LineSegment Point="20, 100"></LineSegment> <LineSegment Point="100, 100"></LineSegment> </PathFigure> </PathGeometry> </Path.Data> </Path> </Grid> |
응용예제입니다.
FrmPathGeometry.xaml |
[그림 25-2] <Grid x:Name="LayoutRoot" Background="White"> <Path Fill="Red" Stroke="Black" StrokeThickness="5"> <Path.Data> <PathGeometry> <PathFigure StartPoint="20,20" IsClosed="True"> <LineSegment Point="20, 100"></LineSegment> <LineSegment Point="100, 100"></LineSegment> </PathFigure> <PathFigure StartPoint="90,20" IsClosed="True"> <LineSegment Point="20, 100"></LineSegment> <LineSegment Point="100, 100"></LineSegment> </PathFigure> </PathGeometry> </Path.Data> </Path> </Grid> |
'Silverlight' 카테고리의 다른 글
27.SilverLight3 - Geometry : BezierSegment (0) | 2009.11.26 |
---|---|
26.SilverLight3 - Geometry : ArcSegment (0) | 2009.11.26 |
24.SilverLight3 - Geometry : RectangleGeometry (0) | 2009.11.26 |
23.SilverLight3 - Geometry : EllipseGeometry (0) | 2009.11.26 |
22.SilverLight3 - Geometry : LineGeometry (0) | 2009.11.26 |
Comments