nerdexam
Microsoft

70-355 · Question #15

You are developing a Universal Windows Platform (UWP) app that will take photos. The app will be used on both Windows 10 device families. You need to ensure that when the app runs on a phone, the…

The solution involves dragging code elements into blanks in a C# code snippet to complete it correctly. The initial code snippet structure is not fully provided, but the final completed code (with blanks filled in from the Code Elements list where applicable, as indicated by…

Implement coding patterns

Question

You are developing a Universal Windows Platform (UWP) app that will take photos. The app will be used on both Windows 10 device families. You need to ensure that when the app runs on a phone, the app can use the built-in features of the phone. How should you complete the code? To answer, drag the appropriate code elements to the correct targets. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

Explanation

The solution involves dragging code elements into blanks in a C# code snippet to complete it correctly. The initial code snippet structure is not fully provided, but the final completed code (with blanks filled in from the Code Elements list where applicable, as indicated by green boxes in the solution) is:

if ( ApiInformation.IsTypePresent ) {
  ApiInformation.IsEventPresent Windows.Phone.UI.Input.HardwareButtons("")
  HardwareButtons.CameraPressed += HardwareButtons_CameraPressed
  BackBtn.Visibility = Visible
}

The elements from the 'Code Elements' list used to fill the blanks are:

  • ApiInformation.IsTypePresent
  • ApiInformation.IsEventPresent
  • Windows.Phone.UI.Input
  • Visible

Note: The solution image also shows HardwareButtons.CameraPressed, HardwareButtons_CameraPressed, and BackBtn.Visibility in green boxes, implying they are placed into target areas, but these specific identifiers are not present in the 'Code Elements' list provided on the page, which suggests they might be part of the predefined target code or from an extended list not fully shown.

Topics

#UWP#camera#device families#phone capabilities

Community Discussion

No community discussion yet for this question.

Full 70-355 Practice