Microsoft
70-511 · Question #129
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>…
The correct answer is A. <Rectangle.RenderTransf orin>. See the full explanation below for the reasoning.
Question
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" 03 Width-"60" Canvas. Left100" 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?
Options
- A<Rectangle.RenderTransf orin>
- B<Rectangle.RenderTransform>
- C<Rectangle.LayoutTransform>
- D<Rectangle.LayoutTransform>
How the community answered
(43 responses)- A77% (33)
- B7% (3)
- C14% (6)
- D2% (1)
Community Discussion
No community discussion yet for this question.