摘要: 在做Windows Phone开发时,应该都遇到过 Operation not permitted on IsolatedSotrageFileStream异常。比如,刚刚Create的File,马上去读就会遇到这样的问题。问题在于IsolatedStorageFile.CreateFile返回的是一个IsolatedStorageFileStream, 而在IsolatedStorageFile.OpenFile时又会创建另一个IsolatedStorageFileStream而前者并没有释放, 因此就会出现这样的问题。正确的用法如下。using (IsolatedStorageFile i 阅读全文
posted @ 2013-02-27 10:25 逝 者 如 斯 阅读(736) 评论(0) 推荐(3) 编辑
摘要: 在 Silverlight for Windows Phone 上,IsolatedStorageSettings不是线程安全的,将在调用Save()时引发IsolatedStorageException,参见MSDN。问题比较简单,直接上代码。 /// <summary> /// IsolatedStorageSettings是非线程安全的,多线程环境下对临界资源的访问应该互斥进行 /// 警告,对于IsolatedStorageSettings的访问都应该通过本类,严禁直接访问。 /// </summary> public class ApplicationS... 阅读全文
posted @ 2012-09-19 11:53 逝 者 如 斯 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 最近在看Laurent Bugnion的Deep Dive MVVM,大神传授了很多技巧,本文只关注一点,如何从ViewModel发起页面导航。 本文的Demo也很简单,MasterPage使用ListBox加载一些信息,单击其中任意项,页面导航到DetailsPage并显示选择项的详情,如下图。 ... 阅读全文
posted @ 2012-04-24 10:18 逝 者 如 斯 阅读(1688) 评论(2) 推荐(4) 编辑
摘要: 原文链接:http://windowsphonegeek.com/articles/Performance-Best-Practices-Windows-Phone-Mango-Local-Database In this article I am going to talk about Windows Phone Mango Local Database Performance Best Pr... 阅读全文
posted @ 2012-04-13 16:34 逝 者 如 斯 阅读(820) 评论(1) 推荐(0) 编辑
摘要: 原文链接:http://windowsphonegeek.com/articles/Windows-Phone-Application-Icons-and-Tiles 本文讲述向Windows Phone应用商城发布应用时,所需要提供的图标规范。 这些也不是什么秘密啦, (也可以访问MSDN获取: Msdn Application Artwork) 但每次提交应用时,都要重新弄明白那坨图... 阅读全文
posted @ 2012-04-13 11:21 逝 者 如 斯 阅读(865) 评论(2) 推荐(1) 编辑
摘要: 原文链接:http://queconejo.wordpress.com/2011/09/04/windows-phone-mango-and-concurrent-database-access/ by Most windows phone developers might already know that the Mango release has a new API For l... 阅读全文
posted @ 2012-04-11 21:31 逝 者 如 斯 阅读(537) 评论(0) 推荐(0) 编辑
摘要: Linq To SQLCE 可以对独立存储中的SQLCE进行基本的数据操作,但是,如何在已存在的数据库表中新建数据列,下文提供了非常优雅的解决方案。 In this article I am going to talk about how to update your database schema when updating your app. The problem is that if y... 阅读全文
posted @ 2012-04-11 15:17 逝 者 如 斯 阅读(339) 评论(0) 推荐(0) 编辑
摘要: by WindowsPhoneGeek I am starting a new "Windows Phone Mango Local Database(SQL CE)" series of short posts that will cover all you need to know in order to get started using a Local Database in Wind... 阅读全文
posted @ 2012-04-10 14:56 逝 者 如 斯 阅读(321) 评论(3) 推荐(1) 编辑
摘要: byWindowsPhoneGeekThis is Part2 of the "WP7 LongListSelector in depth" series of two posts in which I talk about the key properties, methods, events and the basic structure of the LongListSelector in details. In the first "Part1: Visual structure and API" I explained the visual s 阅读全文
posted @ 2012-04-09 14:13 逝 者 如 斯 阅读(663) 评论(0) 推荐(0) 编辑
摘要: byWindowsPhoneGeek In the "WP7 LongListSelector in depth" series of two posts I am going to talk about the key properties, methods, events and the main features of the windows phone 7 LongListSelector... 阅读全文
posted @ 2012-04-09 14:11 逝 者 如 斯 阅读(520) 评论(0) 推荐(0) 编辑