Small Startup Guide for Silverlight OOB extension

Step zero is to add the Silverlight.OOB.Extension.dll to project references and add a new using directive to your source code: "using Silverlight.OOB.Extension;".

Step one is to create an instance of the OfflineCaching class for any data that you want to be cached when the application goes offline. The sample code shows how this is done for a Customers IEnumerable object.

Step two is a small change in data binding. When you set data binding to ItemsSource or DataContext, you have to send your data through the Cast() method of the OOB extension object instead of binding it directly. The Cast() method puts a copy of your data into isolated storage, then just returns the data.


Later when the application is offline you can load data using the GetDataFromOfflineCaching() method.


This OOB extension is very simple to use....

Video for Small Startup Guide here.

Last edited Jun 1, 2009 at 11:57 PM by BFreakout, version 7


No comments yet.