介紹
與眾不同 windows phone 8.0 之 連絡人和日曆
自訂連絡人儲存的增刪改查
獲 取 Windows Phone 的連絡人資料
擷取 Windows Phone 的行事曆資料
樣本
1、示範如何操作 自訂連絡人儲存(自訂連絡人的增刪改查)
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 PhoneForegroundBrush}" 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="新增連絡人..." Click="btnAdd_Click" /> <Button x:Name="btnUpdate" Content="更新連絡人" Click="btnUpdate_Click" /> <Button x:Name="btnDelete" Content="刪除連絡人" Click="btnDelete_Click" /> <Button x:Name="btnQuery" Content="查詢連絡人" Click="btnQuery_Click" /> </StackPanel> </Grid> </phone:PhoneApplicationPage>