You need to ensure that the Timeline app meets the XAML coding requirements.
In Settings.xaml, which markup segment should you select to replace the markup segment at line
AS06?
Answer : A
From scenario: All code and markup must conform to the following style guidelines:
Use resource dictionaries for styles that are used more than once.
Use built-in properties of existing panels instead of using separate style objects.
XAML resources are objects that are referenced from markup more than once. Resources are defined in a ResourceDictionary, typically in a separate file or at the top of the markup page. In this scenario the ResourceDictionary is defined in the ResourceDictionery.xaml file.
You access members of the resource dictionary like any other dictionary.
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.
You must create a control that meets the following requirements:
* allows you to extend the behavior of a combo box allows the arrow image is located at the right edge of a standard control to be replaced with a new image
* has a property that sets and returns the image
*has a visual interface of the control that is defined by using XAML
*defines the properties for the control in code
You need to create the control.
Which object should you use?
Answer : A
ContentDialog represents a dialog box that can be customized to contain checkboxes, hyperlinks, buttons and any other XAML content.
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.
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
You need to configure the app to meet the load time requirements.
What should you do?
Answer : C
Scenario: You must optimize the app using the following guidelines:
You must minimize the time it takes to display content when an item on the timeline is selected.
The app must respect memory and resource constraints for all devices.
You use the NavigationCacheMode property to specify whether a new instance of the page is created for each visit to the page or if a previously constructed instance of the page that has been saved in the cache is used for each visit.
The default value for the NavigationCacheMode property is Disabled. Set the NavigationCacheMode property to Enabled or Required when a new instance of the page is not essential for each visit. By using a cached instance of the page, you can improve the performance of your application and reduce the load on your server.
You have to connect your app to an online identity provider that uses OAuth authentication protocol.
The app must securely use the WebAuthenticationBroker object for authentication.
You need to ensure that the app registers with the provider.
Which two actions should you perform? Each correct answer presents part of the solution.
Answer : C, D
The current application callback URI is used as an implicit value of the callbackUri parameter of the AuthenticateAsync method. However, applications need the URI value to add it to the request URI as required by the online provider.
The requestUri parameter must be a HTTPS address: an exception will be thrown if an HTTP address is used, even for local testing scenarios.