You need to develop a solution that displays a notification on the main page…

DRAG DROP
You plan to deploy an app to the Windows Store. The app will have a trial mode of 30 days.
You need to develop a solution that displays a notification on the main page that shows the number
of days remaining before the trial mode expires.
Develop the solution by selecting and ordering the required code snippets. You may not need all of
the code snippets.

DRAG DROP
You plan to deploy an app to the Windows Store. The app will have a trial mode of 30 days.
You need to develop a solution that displays a notification on the main page that shows the number
of days remaining before the trial mode expires.
Develop the solution by selecting and ordering the required code snippets. You may not need all of
the code snippets.

Answer: See the explanation

Explanation:
Box 1:

Box 2:

Box 3:

Box 4:

Note:
* LicenseInformation.ExpirationDate | expirationDate property
Gets the license expiration date and time relative to the system clock.
* CurrentApp.LicenseInformation | licenseInformation property
Gets the license metadata for the current app.
* the variable expiration is a date. So you must subtract it with the current date.

Incorrect:
* CurrentAppSimulator.LicenseInformation | licenseInformation property
Gets the simulated license metadata for the current app as provided by the simulation.
http://msdn.microsoft.com/enus/library/windows/apps/windows.applicationmodel.store.currentapp.licenseinformation.aspx
http://msdn.microsoft.com/enus/library/windows/apps/windows.applicationmodel.store.licenseinformation.expirationdate.aspx



Leave a Reply 0

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