摘要: 震动VibrateController.Default.Start(TimeSpan.FromSeconds(.5));参数是振动时间长度,上限是5秒钟。VibrateController.Default.Stop();用户在手机的设置里关掉了震动也不会影响app的震动,只会影响到短信来电等。让程序在手机Lock的时候保持运行有两个全局变量,分别适用于不同的场景:PhoneApplicationS... 阅读全文
posted @ 2011-10-16 23:25 MainTao 阅读(481) 评论(0) 推荐(0)
摘要: NavigationService 用Navigate打开某一页: this.NavigationService.Navigate(new Uri(“/InstructionsPage.xaml”,UriKind.Relative)); 还可以用GoBack和GoForward打开某一页。 用GoBack和GoForward打开的是之前打开过的那个页面的实例,但是用Navigate打开的就是一个新... 阅读全文
posted @ 2011-10-16 17:10 MainTao 阅读(389) 评论(0) 推荐(0)