CanvasClip - Canvas영역에서 일부분만 잘라내어 보여주기
.NET프로그래밍/Silverlight 3.0 2009. 12. 1. 09:24 |[FrmCanvasClip.xaml]
<UserControl x:Class="RiaCanvasClip.FrmCanvasClip"
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">
<Canvas x:Name="RootLayout" Width="50" Height="50" Background="Blue">
<Canvas.Clip>
<RectangleGeometry Rect="0,0,50,50"></RectangleGeometry>
</Canvas.Clip>
<Ellipse Width="100" Height="100" Fill="red">
</Ellipse>
</Canvas>
</UserControl>
'.NET프로그래밍 > Silverlight 3.0' 카테고리의 다른 글
Label 컨트롤 (0) | 2009.12.01 |
---|---|
Button컨트롤 (0) | 2009.12.01 |
CanvasSize - 실버라이트 적용할 영역 사이즈 조정하기 (0) | 2009.12.01 |
Canvas.ZIndex (사각형(도형) 포개는 순서 바꾸기) (0) | 2009.12.01 |
Canvas.Left와 Canvas.Top (0) | 2009.12.01 |