Canvas.Left와 Canvas.Top
.NET프로그래밍/Silverlight 3.0 2009. 12. 1. 09:03 |
[FrmCanvas.xaml]
<UserControl x:Class="RiaCanvasClip.FrmCanvas"
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="250" d:DesignWidth="400">
<Canvas x:Name="silCanvas" Background="Silver"
Width="200" Height="200">
<Rectangle Canvas.Left="0" Canvas.Top="0" Fill="Red" Width="50" Height="50" />
<Rectangle Canvas.Left="20" Canvas.Top="20" Fill="Green" Width="50" Height="50" />
<Rectangle Canvas.Left="40" Canvas.Top="40" Fill="Blue" Width="50" Height="50" />
</Canvas>
</UserControl>
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
CanvasSize - 실버라이트 적용할 영역 사이즈 조정하기 (0) | 2009.12.01 |
---|---|
Canvas.ZIndex (사각형(도형) 포개는 순서 바꾸기) (0) | 2009.12.01 |
Perspective 3D (0) | 2009.11.27 |
Transforms 요소 - <TransformGroup /> : UI 요소에 여러 개의 변형 기능 적용 (0) | 2009.11.27 |
Transforms 요소 - <SkewTransform /> : UI 요소 기울이기 (0) | 2009.11.27 |