Silverlight - Using Isolated Storage
- Posted: Jul 15, 2008 at 11:19 AM
- 6,157 Views
- 4 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- WMV (WMV Video)
A Silverlight application can securely store data isolated per-application, per-user on the local machine - here we look at how that works.
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Simply the best.
Great Post.
What if i have a .asx file in IsoStore and how do i return it as a file to a silverlight control like media element.
You can also use the XmlSerializer (from System.Xml.Serialization) to save ur data in a XML file:
// Save method:
using (var file = IsolatedStorageFile.GetUserStoreForApplication()) { var xs = new XmlSerializer(typeof(List<Rect>)); using (IsolatedStorageFileStream stream = file.CreateFile("rects.xml")) { xs.Serialize(stream, list); stream.Close(); } }
And reading is easy to:
// Load method:
using (var file = IsolatedStorageFile.GetUserStoreForApplication()) { // NOTE: you should check if file exist.. var xs = new XmlSerializer(typeof(List<Rect>));
using (IsolatedStorageFileStream stream = file.OpenFile(FILENAME, FileMode.Open)) { list = (List<Rect>) xs.Deserialize(stream); stream.Close(); }
}
oh boy.. thats not readable. it didn't save the text formatting.. sorry about that.
click the link below for a more readable version of the code:
http://paste2.org/p/1049293
Remove this comment
Remove this thread
close