Ugrás a tartalomhoz

.NET Programming Technologies

Gergely Kovásznai, Csaba Biró

Eszterházy Károly College

SkaleTransform

SkaleTransform

You can change the size of an item with the help of the SkaleTransform.

Properties:

  1. ScaleX        elongation in X direction,

  2. ScaleY        elongation in Y direction,

  3. CenterX        center X coordinate,

  4. CenterY        center Y coordinate,

  5. Default value is (0,0).

Example VIII.2 ScaleTransform

VIII.2. ScaleTransform

<StackPanel>

  <Image Height="60" Width="60" Source="Images/car.jpg" Margin="20">

    <Image.RenderTransform>

     <ScaleTransform CenterX="0" CenterY="0" ScaleX="-3" ScaleY="2"/>

      </Image.RenderTransform>

    </Image>

  <Image Height="60" Width="60" Source="Images/car.jpg" Margin="20">

    <Image.RenderTransform>

     <ScaleTransform CenterX="5" CenterY="15" ScaleX="3" ScaleY="-2"/>

    </Image.RenderTransform>

  </Image>

</StackPanel>