WP7 – Sharing data between pages with MVVM

Since the start of my WP7 app, I have leveraged IOC (specifically Ninject) to fill dependencies on my ViewModels following the MVVM Light samples.  To briefly summarize, I have an app level resource called Locator which provides properties for each of my ViewModels.  These properties get the instance from the IOC container.  Locator:     public …

WP7 – Sharing data between pages with MVVMRead More »

WP7 – How many files does it take to crash IsolatedStorage? (more than you think)

I’ve attended several WP7 training events now and have heard that we can store as much data in isolated storage as the phone can hold.  Apps are not constrained to an arbitrary fixed amount or percentage of phone space.  But how many files can it hold?  Regardless of file size, I figure the phone file …

WP7 – How many files does it take to crash IsolatedStorage? (more than you think)Read More »

WP7 – Tombstoning simplified, less duplication

James Ashley posted a great tip on simplifying tombstoning by abstracting IsolatedStorageSettings.ApplicationSettings and PhoneApplicationService.Current.State to a common interface IDataStorage.  This makes storing either temporary state data or more permanent settings data much easier with less code. This was a very good post but the duplication on the two IDataStorage implementations made me cringe a little.  …

WP7 – Tombstoning simplified, less duplicationRead More »