- (Topic 2)
You are developing a Universal Windows Platform (UWP) app.
You need to provide a solution that moves the scroll bars of the ScrollViewer when a user rotates the mouse wheel.
Which two actions should you perform? Each correct answer presents part of the solution.
Correct Answer:
CD
The PointerRoutedAway event occurs on the process receiving input when the pointer input is routed to another process.
DRAG DROP - (Topic 4)
You need to insert code at line AC07 to create the database entities.
How should you complete the relevant code? To answer, drag the appropriate code segments to the correct location. Each code segments 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.
Solution:
From scenario:
The app must use a file based database. You must use a code first entity framework approach.
The DbContextOptionsBuilder Class provides a simple API surface for configuring
DbContextOptions. Databases (and other extensions) typically define extension methods on this object that allow you to configure the database connection (and other options) to be used for a context.
A DbSet
UseModel(IModel) sets the model to be used for the context. If the model is set, then OnModelCreating(ModelBuilder) will not be run.
Does this meet the goal?
Correct Answer:
A
HOTSPOT - (Topic 2)
You are developing a Universal Windows Platform (UWP) app. You need to implement responsive user design patterns.
Which of the following techniques are supported? To answer, select the appropriate option from each list in the answer area.
Solution:
Responsive design techniques
When you optimize your app's UI for specific screen widths, we say that you're creating a responsive design. Here are six responsive design techniques you can use to customize your app's UI.
* Reposition
You can alter the location and position of app UI elements to get the most out of each device
* Resize
You can optimize the frame size by adjusting the margins and size of UI elements.
* Reflow
By changing the flow of UI elements based on device and orientation, your app can offer an optimal display of content-
* Show/hide
You can show or hide UI elements based on screen real estate, or when the device supports additional functionality, specific situations, or preferred screen orientations.
* Replace
This technique lets you switch the user interface for a specific device size-class or orientation. In this example, the nav pane and its compact, transient UI works well for a smaller device, but on a larger device tabs might be a better choice.
* Re-architect
You can collapse or fork the architecture of your app to better target specific devices.
Does this meet the goal?
Correct Answer:
A
- (Topic 4)
You need to configure networking.
Which two networking technologies should you use? Each correct answer presents a complete solution.
Correct Answer:
AC
- (Topic 2)
You are developing a Universal Windows Platform (UWP) app. The app must allow the user to select only one file at a time.
You need to ensure that the app displays the appropriate dialog window. Which method should you use?
Correct Answer:
A
To pick a single file.
Windows.Storage.StorageFile file = await picker.PickSingleFileAsync(); if (file != null)
{
// Application now has read/write access to the picked file this.textBlock.Text = "Picked photo: " + file.Name;
}
else
{
this.textBlock.Text = "Operation cancelled.";
}