Print Page | Close Window

Silverlight 3 Disconnected

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1739
Printed Date: 20-Sep-2025 at 11:58am


Topic: Silverlight 3 Disconnected
Posted By: mlens
Subject: Silverlight 3 Disconnected
Date Posted: 21-Apr-2010 at 7:10pm
Hi There,

Is it possible to save cached data to the file system in a Silverlight 3 App (without the SaveAs Dialog)? I know it's possible to save to a steam, but we need full offline ability whereby we'll read from local files in the absence of a connection. It seems like you cannot because of the 'Sand-box' SL runs in? All the sample code I've seen looks like WinForms or WPF. A Siverlight sample would be apreciated if indeed it's possible.

Thanks
Marcus





Replies:
Posted By: IdeaBlade
Date Posted: 27-Apr-2010 at 3:09pm

 Silverlight 3 does not have any file system support, but you can use Isolated Storage.    The Model Explorer

     http://www.ideablade.com/DevForceSilverlight/DevForceSilverlight_ModelExplorer.aspx - http://www.ideablade.com/DevForceSilverlight/DevForceSilverlight_ModelExplorer.aspx

has an example of using isolated storage to run disconnected with a saved EntityCacheState. See the file IsolatedStorageFileFns.cs.

In Silverlight 4 Out of Browser applications, you can use the file system.  See

     http://www.silverlight.net/getstarted/silverlight-4/ -




Print Page | Close Window