블로그 이미지
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. 27. 09:29 .Net Project/SilverLight 3.0
반응형
  Brush : 실버라이트에서는 단색, 선형, 방사형, 이미지, 비디오, 같은 다양한 브러쉬 효과 존재 
 - Brush(브러시) : Shape 내부 채우기
 - SolidColorBrush :  단색
 - LinearGradientBrush : 선형
 - RadialGradientBrush : 원형(방사형) 
 - ImageBrush : 이미지
 - VideoBrush : 비디오

   MainPage.Xaml 

<UserControl x:Class="RiaSolidColorBrush.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">

        <Canvas Width="200" Height="200" Background="Yellow">

            <Rectangle Canvas.Left="0" Canvas.Top="0"

                       Width="100" Height="100">

                <Rectangle.Fill>

                    <SolidColorBrush Color="Red"></SolidColorBrush>

                </Rectangle.Fill>               

            </Rectangle>

 

            <Rectangle Canvas.Left="100" Canvas.Top="0"

                       Width="100" Height="100">

                <Rectangle.Fill>

                    <SolidColorBrush Color="Silver"></SolidColorBrush>

                </Rectangle.Fill>

            </Rectangle>

 

            <Rectangle Canvas.Left="0" Canvas.Top="100"

                       Width="100" Height="100">

                <Rectangle.Fill>

                    <SolidColorBrush Color="#000000FF"></SolidColorBrush>

                </Rectangle.Fill>

            </Rectangle>

           

            <Rectangle Canvas.Left="100" Canvas.Top="100"

                       Width="100" Height="100">

                <Rectangle.Fill>

                    <SolidColorBrush Color="#A00000FF"></SolidColorBrush>

                </Rectangle.Fill>

            </Rectangle>

 

 

        </Canvas>

    </Grid>

</UserControl> 


 
 SolidColorBrush.Xaml

<UserControl x:Class="RiaSolidColorBrush.FrmSolidColorBrush"

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

        <StackPanel>

        <Ellipse Fill="Yellow"

                 Stroke="Red"

                 Width="100" Height="100">

        </Ellipse>

            <StackPanel>

                <Ellipse Fill="Yellow" Stroke="Red" Height="100" Width="100"></Ellipse>               

            </StackPanel>

        </StackPanel>

    </Grid>

</UserControl> 





반응형
posted by Magic_kit