摘要: Windows Phone 7 Mango (7.1RC)开始提供删除导航历史的方法,这对开发人员来说无疑是一个巨好的消息,很多时候我们程序的第一个界面是登陆页,可是wp7程序没有退出方法,退到最后一页才能退出程序,我们当然是在程序的主界面,提示用户是否要退出程序了,现在可以做到了。MSDN上的示例代码总是把简单的事情搞得那么复杂,其实有个更简单的用法,想什么时候删除导航历史就什么时候删除,想删几个就删几个。首先打开App.xaml.cs页面,找到 public PhoneApplicationFrame RootFrame { get; private set; }方法,如果你没在这个页面添 阅读全文
posted @ 2012-06-15 19:50 hack25 阅读(367) 评论(1) 推荐(0) 编辑
摘要: 建立一个页面SplashScreen.xaml<phone:PhoneApplicationPage x:Class="WebService_CheckWeather.SplashScreen" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone. 阅读全文
posted @ 2012-06-15 19:33 hack25 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 设置PivotItem项不可见,再可见 先移除,再添加 移除:PivotItem item;item = this.pivot.FindName("nextFiveDay") as PivotItem;this.pivot.Items.Remove(item); 添加this.pivot.Items.Add(item); 阅读全文
posted @ 2012-06-15 19:26 hack25 阅读(135) 评论(0) 推荐(0) 编辑