블로그 이미지
Magic_kit
study 관련자료를 한곳으로 자기 개발 목적으로 재태크 재무 관리 목적으로 일상생활의 팁을 공유 하기 위하여 블로그를 개설 하였습니다.

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
반응형

Category

Recent Post

Recent Comment

Archive

2009. 11. 25. 16:07 .Net Project/SilverLight 3.0
반응형
- Canvas
   가장 기본적인 레이아웃 컨트롤
   화가가 자유롭게 그림을 그리듯, 절대좌표를 이용해 컨트롤을 자유롭게 배치 할 수 있는 레이아웃 컨트롤
 

<UserControl x:Class="RiaCanvas.MainPage"

    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 Canvas.ZIndex="3" x:Name="greenCanvas"
          
 Background="Blue" Width="100" Height="100"  >

   

        <Canvas x:Name="redCanvas" Background="Red" Width="100" Height="100"

                Canvas.Left="40" Canvas.Top="40" Canvas.ZIndex="50">

        </Canvas>

       

        <Canvas x:Name="yellowCanvas"
               
 Background="Yellow" Width="100" Height="100"

                Canvas.Left="20" Canvas.Top="20" Canvas.ZIndex="1">

           

        </Canvas>

 

        <Canvas x:Name="BlueCanvas"
                Background="Blue" Width="100" Height="100"

                Canvas.Left="60" Canvas.Top="60" Canvas.ZIndex="20">           

        </Canvas>

    </Canvas>  

</UserControl>

 비하이인트 코드 페이지에서 다음과 같은 속성을 입력 가능 하다

 Canvas canvas = new Canvas();

        canvas.Width = 400;

        canvas.Height = 300; 다음과 같이 입력 하여 속성 지정 가능  






반응형
posted by Magic_kit
2009. 11. 25. 15:50 .Net Project/SilverLight 3.0
반응형
MainPage.xaml

"HelloWorld" 출력하기

 1. 프로젝트 생성 [파일] -> [새 프로젝트]
 2. <TextBlock> 컨트롤 사용하여 속성을 지정하여 F5 실행 -> [웹 사이트] 실행 완료

<UserControl x:Class="HelloWorld.MainPage"

    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">

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

        <TextBlock x:Name="txtName"

                   Text="HelloWorld"

                   FontSize="20"

                   FontFamily="Courier New"

                   FontStretch="ExtraCondensed"

                   FontStyle="Italic"></TextBlock>

    </Grid>

</UserControl> 




반응형
posted by Magic_kit
2009. 11. 2. 13:39 .Net Project/SilverLight 3.0
반응형
- 실버라이트 설치  


1. Visual Studio 2010 설치시  실버라이트 추가 완료

 
2. .www.SilverLight.Net  사이트에서 --> GetStarted 선택


3.  SilverLight ToolKit 각 사용자에 맞게 프로그램 설치
     (익스프레션 블랜드 플랫폼  필수 설치 ) 실버라이드 디자인 용도로 사용


4. 설치 확인


5. 설치 확인 하였으면 다음과 같이 실행하면 된다..
    (필요한 ToolKit 설치시 www.SilverLight.Net  참고)

                                                      <기본 설치 사항>
  




반응형
posted by Magic_kit