You are developing a Universal Windows Platform (UWP) a pp.
The app must be available on Windows Phone, Windows tablet devices, and Xbox.
When the app is running on a device, you need to determine which members of a specific class you can use.
Which of the following methods should you use?
Answer : D
The AppExtensionCatalog class represents a device. This class allows access to well-known device properties as well as additional properties specified during device enumeration.
A Successful completion of FindAllAsync results in a DeviceInformationCollection containing DeviceInformation objects.
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You must create a project for shared code.
Solution: You implement the shared code in a Windows Runtime component.
Does this meet the goal?
Answer : A
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You must create a project for shared code.
Solution: You implement the shared code in a Shared Project.
Does this meet the goal?
Answer : B
The .NET Framework Portable Class Library project type in Visual Studio helps you build cross-platform apps and libraries for Microsoft platforms quickly and easily.
Portable class libraries can help you reduce the time and costs of developing and testing code. Use this project type to write and build portable .NET Framework assemblies, and then reference those assemblies from apps that target multiple platforms such as Windows and Windows Phone.
Even after you create a Portable Class Library project in Visual Studio and start developing it, you can change the target platforms. Visual Studio will compile your library with the new assemblies, which helps you identify the changes you need to make in your code.
From scenario:
The app must be compatible with current and future XBOX apps that use C++.
You have two Universal Windows Platform (UWP) apps named Catalog and Research, respectively.
You need to create a service in the Catalog app that can be queried by the Research app.
Which three tasks should you perform? Each correct answer presents part of the solution.
Answer : B, C, F
F: Example: Add an app service extension to package.appxmanifest
In the AppServiceProvider project's Package.appxmanifest file, add the following AppService extension to the <Application> element. This example advertises the com.Microsoft.Inventory service and is what identifies this app as an app service provider. The actual service will be implemented as a background task. The app service app exposes the service to other apps
B: Create the app service
An app service is implemented as a background task. This enables a foreground application to invoke an app service in another application to perform tasks behind the scenes. Add a new Windows Runtime Component project to the solution.
C: Deploy the service app and get the package family name
The app service provider app must be deployed before you can call it from a client. You will also need the package family name of the app service app in order to call it.
You are developing a Universal Windows Platform (UWP) app that allows users to lake photos and record videos. The photos and videos must be stored in the user's Photos library and Videos library, respectively. The app must not display a user interface for saving files.
You need to configure the app.
Which set of capabilities should you declare in the app manifest?
Answer : B
You must specify the webcam or microphone capabilities in your app manifest file if you are using MediaCapture to capture audio, photos, or video programmatically.
Note: This question it part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You are developing a Universal Windows Platform (UWP) app.
Your app stores files on a user's device.
You need to be able to replace the existing files with new files generated by the user.
Solution you run the StoragaFile.GetParentAsync method to get a reference to the existing file. Then, you run the StorageFile.CreateStreamedFileAsyne method to create the- new file at that same location.
Does this meet the goal?
Answer : A
The GetParentAsync() method gets the parent folder of the current file.
The CreateStreamedFileAsync method can be used to create a StorageFile that can be passed to other methods or passed to another app through app contracts.
Note: This question is part of a series of questions that present the same scenario. Each
question in the series contains n unique solution. Determine whether the solution meets the stated goals.
You need to implement the appropriate XAML layout for the Timeline app.
Solution: You create an instance of a StackPanel class.
Does this meet the goal?
Answer : B
StackPanel is a simple layout panel that arranges its child elements into a single line that can be oriented horizontally or vertically. StackPanel controls are typically used in scenarios where you want to arrange a small subsection of the UI on your page.
The following XAML shows how to create a vertical StackPanel of items.
XAML
<StackPanel>
<Rectangle Fill='Red' Height='44'/>
<Rectangle Fill='Blue' Height='44'/>
<Rectangle Fill='Green' Height='44'/>
<Rectangle Fill='Orange' Height='44'/>
</StackPanel>
The result looks like this.