.NET프로그래밍/Silverlight 3.0

Transforms 요소 - <TransformGroup /> : UI 요소에 여러 개의 변형 기능 적용

holland14 2009. 11. 27. 09:22



[FrmTransformGroup.xaml]




<UserControl x:Class="RiaTransform.FrmTransformGroup"

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

        <TextBlock Text="실버라이트" FontSize="30">

            <TextBlock.RenderTransform>

                <TransformGroup>

                    <TranslateTransform X="10" Y="50"></TranslateTransform>

                    <ScaleTransform ScaleX="2" ScaleY="1.5"></ScaleTransform>

                    <SkewTransform AngleX="20" AngleY="10"></SkewTransform>

                    <RotateTransform Angle="-15"></RotateTransform>

                </TransformGroup>

            </TextBlock.RenderTransform>

        </TextBlock>

    </Grid>

</UserControl>

 

 


-------------------------------------------------------------------------------------

 


[실행결과]