Microsoft
70-511 · Question #63
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.TJTOV" Name="myMediaElement"
- B< MediaElement Source="media\numbers.wmv" Name="myMediaElement"
- C< MediaPlayer Source="media\ numbers, umv" Naitie="myMediaElement"
- D< MediaPlayer Source="media\numbers.wmv" Name="myMediaElement"
How the community answered
(28 responses)- A4% (1)
- B82% (23)
- C11% (3)
- D4% (1)
Community Discussion
No community discussion yet for this question.
