도형(Shape) - <Line> : 선
.NET프로그래밍/Silverlight 3.0 2009. 11. 25. 11:24 |
[FrmLine.xaml]
<UserControl x:Class="RiaShape.FrmLine"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Canvas Background="White">
<Line
X1="100" Y1="100"
X2="200" Y2="200"
Stroke="Black" StrokeThickness="5"></Line>
<Line
X1="200" Y1="100"
X2="100" Y2="200"
Stroke="Red" StrokeThickness="5"
StrokeDashArray="5, 2"
StrokeDashCap="Round"
StrokeStartLineCap="Triangle"
StrokeEndLineCap="Square"></Line>
</Canvas>
</UserControl>
-------------------------------------------------------------------------------------
[실행결과]
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
도형(Shape) - <Polygon> : 다각형(닫혀있는 모양) (0) | 2009.11.25 |
---|---|
도형(Shape) - <Polyline> : 선(열려있는 모양) (0) | 2009.11.25 |
도형(Shape) - <Ellipse> : 타원 (0) | 2009.11.25 |
도형(Shape) - <Rectangle /> : 사각형 (0) | 2009.11.25 |
레이아웃 확장 - DockPanel (0) | 2009.11.25 |