试题详情
单项选择题 You are developing a Windows Presentation Foundation (WPF) application to play audio files. You add MediaElement mediaElement1 and a Button control named btnPlayAudio to the design surface. The MediaElement co.. audio file. The LoadedBehavior attribute is set to Manual. You add the following code to the main Window. 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 constructor of the main window ?()

A、

B、

C、

D、

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题