How can I add multiple transformations to my control?

I want to scale it and rotate it. But my control only takes inn one transformation as it .RenderTransform.

How can I add a ScaleTransform and a Rotatetransform?

Answers


This is taken right from MSDN

<Page 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
  <StackPanel Margin="50">

      <Button 
        RenderTransformOrigin="0.5,0.5"
        HorizontalAlignment="Center">Click
        <Button.RenderTransform>

          <!-- TransformGroup enables you to apply multiple transforms. In 
               this example, the button is scaled and rotated. -->
          <TransformGroup>

            <!-- Triple the size (scale) of the button in the Y direction. -->
            <ScaleTransform ScaleY="3" />

            <!-- Rotate the button by 45 degrees. -->
            <RotateTransform Angle="45" />

          </TransformGroup>
        </Button.RenderTransform>
      </Button>

  </StackPanel>
</Page>

Need Your Help

How to get row delta value by pandas dataframe

python pandas

I got a dataframe combined by with index = datetime and column = {'currentprice'}

Eclipse PhoneGap HTML div link isn't working

android eclipse cordova html

I am currently making an android app on PhoneGap and am having trouble with linking an image, so once clicked it takes the user to a different div on the same page, I don't want to make another HTM...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.