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
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)- A4% (1)
- B81% (21)
- C12% (3)
- D4% (1)
Community Discussion
No community discussion yet for this question.
