- Transforms 를 그룹화 하여 여러개를 동시에 적용할 때 사용 ( 실제 3D 효과는 아님 )
MainPage.xaml |
[그림 40-1] <Canvas Width="400" Height="300" Background="Red"> <Rectangle Width="100" Height="100" Fill="Yellow" Opacity="0.4"> <Rectangle.RenderTransform> <TransformGroup> <RotateTransform Angle="45" CenterX="50" CenterY="50"> </RotateTransform> <ScaleTransform ScaleX="1.5" ScaleY="1.5"></ScaleTransform> <TranslateTransform X="100" Y="50"></TranslateTransform> </TransformGroup> </Rectangle.RenderTransform> </Rectangle>
<TextBlock Text="준철이 블로그" FontSize="15"> <TextBlock.RenderTransform> <TransformGroup> <TranslateTransform X="0" Y="75"></TranslateTransform> <ScaleTransform ScaleX="1.2" ScaleY="2"></ScaleTransform> <SkewTransform AngleX="20" AngleY="10"></SkewTransform> <RotateTransform Angle="-20"></RotateTransform> </TransformGroup> </TextBlock.RenderTransform> </TextBlock> </Canvas> |
'Silverlight' 카테고리의 다른 글
42.SilverLight3 - CanvasClip (0) | 2009.12.01 |
---|---|
41.SilverLight3 - Perspective 3D (0) | 2009.11.27 |
39.SilverLight3 - Transform : SkewTransform ( 기울기 ) (0) | 2009.11.27 |
38.SilverLight3 - Transform : ScaleTransform ( 줌 인/줌 아웃 ) (0) | 2009.11.27 |
37.SilverLight3 - Transform : RotateTransform ( 회전 ) (0) | 2009.11.27 |
Comments