가로크기, 세로크기, 테두리 색상, 테두리 굵기, 채워질 색상, 모서리의 둥근 정도를 나타냅니다.
☞ 둥근 모서리 표현하는 속성 : RadiusX, RadiusY
MainPage.xaml |
[그림 14-1] <Canvas Width="400" Height="400" Background="Silver"> <Rectangle Canvas.Top="5" Canvas.Left="5" Width="150" Height="150" Fill="Red"> </Rectangle>
<Rectangle Canvas.Top="5" Canvas.Left="160" Width="150" Height="150" Fill="Orange"
<Rectangle Canvas.Top="160" Canvas.Left="5" Width="150" Height="150" Fill="Blue" Stroke="Black" StrokeThickness="5"></Rectangle>
<Rectangle Canvas.Top="160" Canvas.Left="160" Width="150" Height="150" Fill="Green" Stroke="Red" StrokeThickness="5" RadiusX="15" RadiusY="15"> </Rectangle> </Canvas> |
'Silverlight' 카테고리의 다른 글
16.SilverLight3 - Shape - Line ( 선 ) (0) | 2009.11.25 |
---|---|
15.SilverLight3 - Shape - Ellipse ( 타원 ) (0) | 2009.11.25 |
13.SilverLight3 - Layout - DockPanel (0) | 2009.11.25 |
12.SilverLight3 - Layout - WrapPanel (0) | 2009.11.25 |
11.SilverLight3 - Layout - Border (0) | 2009.11.24 |
Comments