Select the version of the book, you wish to see the Silverlight demo for. Selected version: Silverlight3

Persisting Local Data

Demo Instructions & Notes:
  1. Click the "Load data from service only" button to mimic calling a service. Note the delay.
  2. Click the buttons below to place the records in Isolated Storage cache.
  3. Click the "Load from cache" button. Notice how quickly the data comes back compared to the service. You can click the first and fourth buttons to compare.

Concepts shown in demo:
Silveright has a data storage API called Isolated Storage. It can be used to cache small or large record sets. In business intelligence scenarios, this can be used to store config values, aggregates or metadata. For example, if I wrote a cube browser in Silverlight, I could store the list of dimensions or measures in Isolated Storage without having to call the service each time the cube is opened. This technique can optimize performance dramatically.

Get Microsoft Silverlight