[PL]/VB & VB.NET

[ vb 2008 ] Element:Shape (Line)

객과 함께. 2010. 1. 5. 13:21

참고사이트 :  taedi.kr

이 글에 자세한 정보는 위 사이트에서 확인 하시길....


<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300" Name="Window1">
   
    <Canvas>
        <Line  X1=" 10"
               Y1=" 10"
               X2="133"
               Y2="133"
               Stroke="Gold">
        </Line>
        <Line X1=" 280"
              Y1=" 0"
              X2=" -0"
              Y2=" 260"
              Stroke="Blue"
              StrokeThickness="5">
        </Line>
        <Line X1=" 0"
              Y1=" 0"
              X2=" -120"
              Y2=" 120"
              Stroke="Yellow"
              StrokeThickness="5"
              Canvas.Left="133"
              Fill="Red">
        </Line>
        <Line X1=" 280"
              Y1=" 133"
              X2=" -133"
              Y2=" 550"
              Stroke="Pink"
              StrokeMiterLimit ="10"
              StrokeThickness="10"
              Fill="Brown">
        </Line>

    </Canvas>
</Window>

 

[ 실행 화면 ]

 

 

Ariicle Writer : 정태호 님

1차 수정일 : 2010.01.05  수정자 : 객