Which XAML code fragment should you use?

You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application includes a window that displays a rectangle.
You need to transform the rectangle by rotating it 45 degrees.
Which XAML code fragment should you use?

You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application includes a window that displays a rectangle.
You need to transform the rectangle by rotating it 45 degrees.
Which XAML code fragment should you use?

A.
<Rectangle.RenderTransform>
<TranslateTransform X="45" Y="45" />
</Rectangle.RenderTransform>

B.
<RectangleGeometry.Transform>
<RotateTransform CenterX="40" CenterY="70" Angle="45" />
</RectangleGeometry.Transform>

C.
<Rectangle.RenderTransform>
<SkewTransform CenterX="25" CenterY="25" AngleX="0" AngleY="45" />
</Rectangle.RenderTransform>

D.
<Rectangle.RenderTransform>
<ScaleTransform CenterX="0" CenterY="0" ScaleX="45" ScaleY="45" />
</Rectangle.RenderTransform>



Leave a Reply 0

Your email address will not be published. Required fields are marked *