nerdexam
Microsoft

70-511 · Question #58

70-511 Question #58: Real Exam Question with Answer & Explanation

Sign in or unlock 70-511 to reveal the answer and full explanation for question #58. The question stem and answer options stay visible for context.

Question

You are developing a Windows Presentation Foundation (WPF) application to play audio files. You add a MediaElement control named mediaElementl and a Button control named btnPlayAudio to the design surface. The MediaElement control Source attribute is set to an audio file. The LoadedBehavior attribute is set to Manual. You add the following code to the main window. void playCommand_Executed(object sender, RoutedEventArgs e) { mediaElementl.Play(); } You set the command of the button to MediaCommands.Play. You need to ensure that the application will play the audio file when the button is pressed. What should you add to the constructor of the main window?

Options

  • ARoutedCommand playCommand = new RoutedCommand();
  • BRoutedUICommand playCommand = new RoutedUICommand();
  • CCommandBinding playCommand =
  • DCommandBinding playCommand =

Unlock 70-511 to see the answer

You've previewed enough free 70-511 questions. Unlock 70-511 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-511 Practice