windows phone开发快速入门教程9与集成_第1页
windows phone开发快速入门教程9与集成_第2页
windows phone开发快速入门教程9与集成_第3页
windows phone开发快速入门教程9与集成_第4页
windows phone开发快速入门教程9与集成_第5页
已阅读5页,还剩61页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

CommunityContributor1WindowsPhone82WindowsPhone3WindowsPhone4WindowsPhone85WindowsPhone86789WindowsPhone1011WindowsPhone81213WindowsPhone814WindowsPhone8151617WindowsPhone18WindowsPhone8企业应用19Windows8WindowsPhone820WindowsPhoneWindowsPhoneWindowsPhoneWindowsPhone应用程序在WMAppManifest.xml中能WMAppManifest.xml文件是应用程序VisualStudio2012GUI只读WindowsPhone的联系人和日WindowsExchange(Outlook,聚合的账户 DataContactContactOthercontactAccountExchangeAccounts(Contactsarefromthelocaladdressbookonly,nottheglobaladdresslist.)OperatorAddressBookWindowsLiveAggregatedNetworks(,LinkedIn,andsoon)ContactsContactscons=new//GettheaccountsfromwhichcontactsareavailableonthephoneIEnumerable<Account>accounts=cons.Accounts;if(accounts[0].Kind=={//Outlook}privatevoidloadButton_Click(objectRoutedEventArgs{Contactscons=newpleted+=new cons.SearchAsync(String.Empty,FilterKind.None,} pleted(objectsender,ContactsSearchEventArgs{//Bindtheresultstotheuserinterface. ontext=e.Results;}catch}}<<ListBoxName="ContactResultsData"ItemsSource="{Binding}"Height="347"Margin="24,0,0,0"> <TextBlockName="ContactResults"Text="{BindingPath=Dis Mode=OneWay}"/> Demo1显示联cons.SearchAsync(cons.SearchAsync("Ro",yName,//Findallthecontactswithnamesbeginning显示 、LINQ联系人数据的大小可能变化很大。与使用内置搜索(预先索引)相比,LINQ速度较慢。apps.SearchAsync(apps.SearchAsync(newDateTime(2000,1,newDateTime(2013,1,1),SaveContactTasksaveContact;//Declarewithpagepublic{saveContact=newpleted+=new }privatevoidMakeContactButton_Click(objectsender,RoutedEventArgs{saveContact.FirstName=FirstNameTextBox.Text;saveContact.LastName=LastNameTextBox.Text;}pleted(objectSaveContactResult{if(e.TaskResult=={MessageBox.Show("Saved}}asyncasyncprivatevoidMakeContactButton_Click(objectsender,RoutedEventArgs{ContactStorestore=awaitStoredContactcontact=newStoredContact(store);contact.RemoteId=Guid.NewGuid().ToString();contact.GivenName=FirstNameTextBox.Text;contact.FamilyName=LastNameTextBox.Text;IDictionary<string,object>propsawaitcontact.GetExtendedPropertiesAsync();props.Add("Password",PasswordEntry.Text);await}联系人API还为您提供一个机制,用于枚举上的自定义Demo2创建联 ChooserLaunchtheWalletapplicationandaddanitemSearchcontactstoreturnaddresses,phonenumbersandSelectapicturefromthemediaCaptureapictureusingtheInviteyerstoamulti-gameSaveanew addressesorphone SaveShowBingmapsandBingMapsTask,LaunchthenetworkconnectionssettingsSendShowmapsandMapsTask,DownloadandupdateofflineMapDownloaderTask,SearchtheMarketceandfindMarketceSearchTask, ShowMarketceAppDetailsandReviewMarketceDetailTask,Markety ceaphoneCreateanSharealink,statusor *NEW*onasocialShareLinkTask,ShareStatusTask,SendanSMSStartasearchusingOpenaweb保存任SaveAppointmentTasksaveAppointmentTask=newsaveAppointmentTask.StartTime=DateTime.Now.AddHours(2);saveAppointmentTask.EndTime=DateTime.Now.AddHours(3);saveAppointmentTask.Subject="MeetwithRob";saveAppointmentTask.Location="SomewhereniceinHull";saveAppointmentTask.Details="Discussimportantstuff.";saveAppointmentTask.IsAllDayEvent=false;saveAppointmentTask.Reminder=Reminder.FifteenMinutes;saveAppointmentTask.AppointmentStatus=您可以选择指定预填充到会中的的若干属性privateprivatevoidLockSettingsButton_Click(objectsender,RoutedEventArgs{//LaunchthelockscreensettingsdialogWindows.System.Launcher.LaunchUriAsync(newUri("ms-settings-lock:"));}LaunchUriAsyncURILaunchesthewebbrowserandnavigatestothespecified LaunchestheappandcreatesanewmessagewiththespecifiedaddressontheToline.Notethat isnotsentuntiltheusertapsLaunchestheAccountSettingsLaunchestheAirneModeSettingsLaunchestheBluetoothSettingsLaunchestheCellularSettings Launches andaccountssettingsLaunchestheLocationSettingsLaunchestheLockScreensettingsLaunchestheWi-FiSettingsURILaunchestheWindowsPhoneStoreandshowsthedetailspageforthespecifiedapp.LaunchestheStoreandshowsthereviewpageforthecallingapp.LaunchestheStoreandshowsthereviewpageforthespecifiedapp.zune:search?[searchLaunchestheStoreandsearchesforthespecifiedLaunchestheStoreandsearchesforappsbyLaunchestheStoreandsearchesforitemsbypublisherWindowsPhoneURI,其中包括查询始终将文本“警报”UI标

将导航到的导航URI和查询字符eggReminder=newReminder("EggeggReminder.BeginTime=DateTime.Now+newTimeSpan(0,eggTime,eggReminder.Content="EggReady";eggReminder.RecurrenceType=RecurrenceInterval.None;eggReminder.NavigationUri=newUri("/EggReadyPage.xaml",ReminderRemindereggReminder=ScheduledActionService.Find("EggTimer")asReminder;if(eggReminder!=null){ScheduledActionService.Remove("Egg}“EggTimerDemo:EggWindowsPhone捕获cameraTaskcameraTask=newpleted+=new pleted(objectPhotoResult{if(e.TaskResult=={photoImage.Source=newnew}}WindowsPhone的捕获对于高级捕获,Windows.Phone.Media.Capture.PhotoCaptureDevice类提供一组扩展的功能和更好的性能。使用此类控制属性,例如ISO、补偿、手动对焦位置(在手PhotoCameraPhotoCameracamera=new//Setthe Brushsourcetothecameracamera.CaptureImageAvailablenew<<RectangleWidth="320"Height="240"HorizontalAlignment="Left" Brushx:Name="viewfinderBrush"viewfinderBrushWindowsPhoneprivateprivatevoidPhotoButton_Click(objectsender,RoutedEventArgs{}保存voidcamera_CaptureImageAvailable(objectContentReadyEventArgs{{stringfileName=+MediaLibrarylibrary=newlibrary.SavePictureToCameraRoll(fileName}保存至camera显示usingusingvoidcamera_CaptureImageAvailable(objectContentReadyEventArgs{{BitmapImageb=newBitmapImage();b.CreateOptions=BitmapCreateOptions.None;PictureImage.Source=b;}usingusingusingusing(IsolatedStorageFileisStore{using(IsolatedStorageFileStreamtargetStream=isStore.OpenFile(fileName,FileMode.Create,FileAccess.Write)){WriteableBitmapbitmap=newbitmap.SaveJpeg(targetStream,bitmap.PixelWidth,bitmap.PixelHeight,0,}}Demo3:文件夹或Web的数据,以提供更丰富、更的与它们所捕获的<ExtensionConsumerID="{5B04B775-356B-4AA0-AAF8-TaskID="_default"在WMAppManifest.xml文件中能力,在<Tokens>元173×259×277×AssetsURI映射将用户带到应用中拥有取景器的Demo4镜头应WindowsPhone8<ExtensionExtensionName="Photos_Auto_Upload"TaskID="_default"使用WindowsPhone .Xna.Framework.Audio.Microphone类从WindowsPhone应用WindowsPhone8 WindowsPhoneMotionAPIWindowsPhone使用PhotoCameraAPI来显示来自设备相机的源。在源的顶部放置文本以标记空使用运动API动态调整文本的位置,以设备方向更改时它们穿过相机取景器通过启动器和选择器,应用可以使用资应用程序可以从相机捕获和应用可以自动上传HY

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论