IsolatedStorageSettings wrapper for Windows 8

Tweet about this on TwitterShare on FacebookShare on RedditShare on Google+Email this to someonePin on Pinterest

Just a quick post on something I came across. While porting a Windows Phone app to Windows 8 (XAML) I noticed that all the calls to IsolatedStorageSettings are invalid as that doesn’t exist anymore. So because I am lazy and didn’t want to change any code I wrote a tiny wrapper around the new way. Once you’ve added the class all your existing code will work fine 🙂

EDIT: There is actually one thing that you will still need to change in your existing code. Wherever you are using .Contains, change that to .ContainsKey.

p.s.2 This is just for porting where you don’t want to change code. Here is a nice framework for doing everything else: http://winrtstoragehelper.codeplex.com/

Tweet about this on TwitterShare on FacebookShare on RedditShare on Google+Email this to someonePin on Pinterest