.Net Project/SilverLight 3.0

15장) 실버라이트 단순 기하 도형 (EllipaseGeometry)

Magic_kit 2009. 11. 26. 15:00
반응형
-  EllipaseGeometry
   Center 프로퍼티로 중심점을 설정하고 RadiusX, RadiusY 프로퍼티를 통해 원의 X반지름, Y반지름 설정

 <UserControl x:Class="RiaGeometry.FrmEllipseGeometry"

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

       

        <Rectangle Width="300" Height="300" Fill="Yellow"

            Stroke="Blue" StrokeThickness="3">

            <Rectangle.Clip>

                <EllipseGeometry Center="80, 80" RadiusX="100" RadiusY="100">

                </EllipseGeometry>

            </Rectangle.Clip>

        </Rectangle>

 

    </Grid>

</UserControl> 




반응형