Microsoft 70-485 - Advanced Windows Store App Development using C# Exam

Page:    1 / 33   
Total 163 questions

You need to implement the business requirement to display video clips.
Which code segment should you use in the MainPage.xaml file?


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : A

You need to meet the business requirements about downloading and uploading.
How should you configure the app? (To answer, select the appropriate options from each drop-down list in the answer area.)




Answer :

You need to implement the requirements for the behavior of the main page. Which code segment should you insert at line MP07?


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D


Answer : A

You need to ensure that the app uploads media and files to the media manager service.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)


  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
  • E. Option E


Answer : B,D

You need to implement the requirements for streaming media.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

  • A. Enable access to the Videos Library.
  • B. Ensure that the app stays in the foreground while media is being streamed.
  • C. Enable access to the Pictures Library.
  • D. Register for the SourceRequested event.
  • E. Enable access to the Music Library.
  • F. Register for the PlayRequested event.


Answer : A,D

Explanation: From scenario:
Team members must be able to stream video clips to other devices in the vicinity of the team member's device. The app will not support the streaming of photographs.
D: You can use Play To to stream the audio or video in your application, as well as images, by implementing the Play To contract. To implement the Play To contract in your application, register for the sourceRequested event.
Note:
To register for the sourceRequested event, get a reference to the current PlayToManager by calling the getForCurrentView method. You can then call addEventHandler on the
PlayToManager to associate your event handler with the sourceRequested event. In your event handler, pass the media element from your application to the setSource method of the PlayToSourceRequestedEventArgs object passed to the event handler as shown in the following example.
// Play To Contract
private Windows.Media.PlayTo.PlayToManager ptm =
Windows.Media.PlayTo.PlayToManager.GetForCurrentView();
protected override void OnNavigatedTo(NavigationEventArgs e)
{
ptm.SourceRequested += sourceRequestHandler;
}
private void sourceRequestHandler(
Etc.

Page:    1 / 33   
Total 163 questions