nerdexam
Microsoft

70-511 · Question #132

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a custom command as a resource. The key of the command is saveCommand. You write the…

The correct answer is A. Insert the following code fragment at line 04. See the full explanation below for the reasoning.

Question

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You add a custom command as a resource. The key of the command is saveCommand. You write the following code fragment. (Line numbers are included for reference only.) 01 <Canvas> 03 <Button> 05 </Button> 06 </Canvas> You need to ensure that saveCommand is executed when the user clicks the Button control. What should you do?

Options

  • AInsert the following code fragment at line 04.
  • BInsert the following code fragment at line 04.
  • CInsert the following code fragment at line 02.
  • DInsert the following code fragment at line 02.

How the community answered

(27 responses)
  • A
    70% (19)
  • B
    7% (2)
  • C
    19% (5)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice