Alarm Sample

The sample code for this section includes a page that allows you to enter the details of a new alarm—including its name and begin time—and to set the alarm via an application bar button. The code is located in the Alarms directory of the WPUnleashed.BackgroundAgents project, in the BackgroundAgents solution.

Within the sample, the AlarmViewModel class contains various properties that correspond to the following properties of the Alarm class:

Image BeginTimeA DateTime value indicating when the alarm should occur.

Image NameA unique string identifier ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.