Blog Content

    티스토리 뷰

    15.SilverLight3 - Shape - Ellipse ( 타원 )

    반응형
    원을 그리는 예제입니다.

    MainPage.xaml

    [그림 15-1]


    <Canvas Width="400" Height="400" Background="Silver">

            <Rectangle Canvas.Top="100" Canvas.Left="120" Width="150" Height="150"

                       Fill="Yellow" Stroke="Red" StrokeThickness="5" RadiusX="150"

                       RadiusY="150"></Rectangle>

    </Canvas>



    응용 예제입니다.

    FrmElipse.xaml

    [그림 15-2]


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

            <Ellipse x:Name="ellWon2" Stroke="Red" Width="200" StrokeThickness="5"

                     Fill="Red" Margin="100,100,100,90"></Ellipse>

           

            <Ellipse

                x:Name="ellWon"

                Canvas.Left="5"

                Canvas.Top="10"

                Width="150" Fill="Yellow"

                Stroke="Black"

                StrokeThickness="3" Margin="125,111,125,100">

            </Ellipse>

     

            <Ellipse

                x:Name="ellWon3"

                Canvas.Left="10"

                Canvas.Top="30" Fill="Black"

                Stroke="Black"

                StrokeThickness="3" Margin="155,111,151,100">

            </Ellipse>

    </Grid>



    반응형

    Comments