nerdexam
Microsoft

70-511 · Question #173

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) You need to…

The correct answer is B. < MediaElement Source="media\ numbers.wmv " Name=" myMediaElement ". 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) You need to ensure that a video file begins to play only when a user clicks Play. Which code fragment should you insert at line 06?

Exhibit

70-511 question #173 exhibit

Options

  • A< MediaElement Source="media\ numbers.wmv " Name=" myMediaElement "
  • B< MediaElement Source="media\ numbers.wmv " Name=" myMediaElement "
  • C< MediaPlayer Source="media\ numbers.wmv " Name=" myMediaElement "
  • D< MediaPlayer Source="media\ numbers.wmv " Name=" myMediaElement "

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    81% (21)
  • C
    12% (3)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice