Introduced
Unique Windows Phone 8.0 contacts and calendars
Customize the storage of contacts and additions to the check
Get contact data for Windows Phone
Get Windows Phone's calendar data
Example
1. Demonstrates how to operate a custom contact store (Customize the contact's additions and deletions to change the check)
Contactsandcalendar/customcontacts.xaml
<phone:phoneapplicationpage x:class= "Demo.ContactsAndCalendar.CustomContacts" xmlns= "Http://schemas.microsoft . Com/winfx/2006/xaml/presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns:phone=" Clr-namespace:microsoft.phone.controls;assembly=microsoft.phone "Xmlns:shell=" Clr-namespace:
Microsoft.phone.shell;assembly=microsoft.phone "xmlns:d=" http://schemas.microsoft.com/expression/blend/2008 " Xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006" fontfamily= "{StaticResource Phonefontfamilynormal} "fontsize=" {StaticResource phonefontsizenormal} "foreground=" {StaticResource PhoneForegroun Dbrush} "supportedorientations=" Portrait "orientation=" Portrait "mc:ignorable=" D "shell:systemtray.isvisible="
True "> <grid background=" Transparent "> <stackpanel orientation=" Vertical "> <textblock x:name= "lblmsg"/> <button x:name= "Btnadd"content= "Add Contact" click= "btnAdd_Click"/> <button x:name= "btnupdate" content= "Update Contact" click= "btnupdate
_click "/> <button x:name= btndelete" content= "Delete Contacts" click= "Btndelete_click"/> <button x:name= "btnquery" content= "Query Contacts" click= "Btnquery_click"/> </StackPanel> </grid > </phone:PhoneApplicationPage>