Silverlight

22.SilverLight3 - Geometry : LineGeometry

Godffs 2009. 11. 26. 11:03
반응형
기하도형을 그리기 위한 객체 입니다.

LineGeometry
- StartPoint : 시작 지점 (X, Y)
- EndPoint : 끝 지점 (X, Y)

MainPage.xaml

[그림 22-1]


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

        <!--LineGeometry Path .-->

        <Path Stroke="Red">

            <Path.Data>

                <LineGeometry StartPoint="30, 30" EndPoint="100, 100"></LineGeometry>

            </Path.Data>

        </Path>

</Grid>



반응형