How should you complete the method?

DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
A user terminates the app.
You need to ensure that the app initializes when the user starts the app.
How should you complete the method? To answers, drag the appropriate code segment to the correct location or locations. Each code segment 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.
Select and Place:

DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
A user terminates the app.
You need to ensure that the app initializes when the user starts the app.
How should you complete the method? To answers, drag the appropriate code segment to the correct location or locations. Each code segment 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.
Select and Place:

Answer:

Explanation:
The OnLaunched method is called when an app is launched. It is passed a LaunchActivatedEventArgs parameter which provides, among other things, the arguments passed to the app, the identifier of the tile thatlaunched the app, and the previous state that the app was in.
Box 1: OnLaunched
Box 2: LaunchActivatedEventArgs e
https://docs.microsoft.com/en-us/windows/uwp/launch-resume/app-lifecycle



Leave a Reply 0

Your email address will not be published. Required fields are marked *