Which code fragment should you insert at line 04?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment. (Line numbers are included for reference only.)
01<Canvas>
02<Rectangle Stroke=”Red” StrokeThickness=”5″ Height=”60″
03Width=”60″ Canvas.Left=”100″ Canvas.Top=”100″>
04
05</Rectangle>
06</Canvas>
You need to rotate the rectangle by 45 degrees by using its upper-left corner as the axis.
Which code fragment should you insert at line 04?

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment. (Line numbers are included for reference only.)
01<Canvas>
02<Rectangle Stroke=”Red” StrokeThickness=”5″ Height=”60″
03Width=”60″ Canvas.Left=”100″ Canvas.Top=”100″>
04
05</Rectangle>
06</Canvas>
You need to rotate the rectangle by 45 degrees by using its upper-left corner as the axis.
Which code fragment should you insert at line 04?

A.
<Rectangle.RenderTransform> <RotateTransform Angle=”45″ CenterX=”0″ CenterY=”0″ /></Rectangle.RenderTransform>

B.
<Rectangle.RenderTransform> <RotateTransform Angle=”45″ CenterX=”100″ CenterY=”100″ /></Rectangle.RenderTransform>

C.
<Rectangle.LayoutTransform> <RotateTransform Angle=”45″ CenterX=”0″ CenterY=”0″/></Rectangle.LayoutTransform>

D.
<Rectangle.LayoutTransform> <RotateTransform Angle=”45″ CenterX=”100″ CenterY=”100″/></Rectangle.LayoutTransform>



Leave a Reply 0

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