All about WP7 Isolated Storage – intro to Isolated Storage
published on: 3/10/2011 | Views: N/A | Tags: IsoStore
by WindowsPhoneGeek
Recently we received lots of requests for a series of articles about Isolated Storage. At first I was thinking about a series of long articles but later I decided that it would be better to write something simple and easy to understand that targets exactly the problem and give a solution. So I am starting the “All about WP7 Isolated Storage ” series of short articles focused on real practical examples with source code rather than a plain theory. I will try to explain the key things you need to know about Isolated Storage in Silverlight for WP7. Here is the what is included in this series:
- All about WP7 Isolated Storage – intro to Isolated Storage
- All about WP7 Isolated Storage - Creating Folders and files
- All about WP7 Isolated Storage - Store data in IsolatedStorageSettings
- All about WP7 Isolated Storage - Read and Save Text files
- All about WP7 Isolated Storage - Read and Save XML files using XmlSerializer
- All about WP7 Isolated Storage - Read and Save XML files using XmlWriter
- All about WP7 Isolated Storage - Read and Save Images
- All about WP7 Isolated Storage - Read and Save Captured Image
- All about WP7 Isolated Storage - Read and Save Binary files
- All about WP7 Isolated Storage - File manipulations
- All about WP7 Isolated Storage - Recommendations and Best Practices
- All about WP7 Isolated Storage - open source Databases and Helper libraries
This is the first post so I am going to give a brief explanation of what is Isolated Storage. (NOTE: This is the only post that is not focused on examples, because before we begin we need to know the basic/fundamental concepts of the Isolated Storage ).
What is Isolated Storage?
Basically Isolated Storage is used to store local data a on a Windows Phone 7 phone. The following figure represents the folder structure for a storage application:

Isolated storage enables managed applications to create and maintain local storage. The mobile architecture is similar to the Silverlight-based applications on Windows. All I/O operations are restricted to isolated storage and do not have direct access to the underlying operating system file system, which helps to provide security and prevents unauthorized access and data corruption from other apps.
NOTE: If you have two applications that work with the same data, then that data can’t be local to either application. You need to use a web service.
NOTE: Windows Phone applications do not have an imposed quota size because the requirements for each application’s scenario are different. So storage resources on a phone are limited so applications should only store necessary data. When a Windows Phone has only 10% of storage space remaining, the user will receive a notification of this status and even the whole app can stop working which is not a favorable option from a user’s perspective!
You can perform different manipulation in the Isolated Storage like writing to a file, creating folders and files, reading data, removing file, etc.
Basically in Silverlight for Windows Phone 7 you can store data in:
- IsolatedStorageSettings
- Folders and files in the Isolated Storage
- Database
That was the intro post of the “All about WP7 Isolated Storage” series of articles. Stay tuned with the rest of the posts.
Reference: MSDN Documentation.
You can also follow us on Twitter @winphonegeek
Comments
Thsnks for starting this series
posted by: Tohan on 3/10/2011 4:07:03 PM
Thank you guys for starting this series. I have been waiting for it.
Next articles
posted by: Tomas on 3/10/2011 4:08:43 PM
Vote +1. Looking forward to the rest of the articles. Cheers!
figure not displayed
posted by: Alfah on 10/12/2011 10:37:59 AM
good work i must say :) i jus wanted to point out that the figure representing the folder structure is not to be seen.
thanks for the tutorial
posted by: kabinad on 10/19/2011 11:04:31 AM
this is very helpful tutorial .thank you
get data from SD card
posted by: vijay on 2/21/2012 2:24:43 PM
can anybody help me, how can i read the file which is located in my SD card in windows phone 7... i want to read a perticular file in my application...
Our Top Articles & Free books
- Our FREE e-book: "Windows Phone Toolkit In Depth" 2nd edition
- 400+ Windows Phone Development articles in our Article Index
- 21 WP7 Toolkit in Depth articles covering all controls
- 12 WP7 Coding4Fun Toolkit in Depth articles covering all controls
- Performance Tips when creating WP7 apps
- Creating a WP7 Custom Control in 7 Steps
- WP7 working with VisualStates: How to make a ToggleSwitch from CheckBox
- What makes a WP7 App successful
- Creating theme friendly UI in WP7 using OpacityMask
- Implementing Windows Phone 7 DataTemplateSelector and CustomDataTemplateSelector
- All about Splash Screens in WP7 – Creating animated Splash Screen
- Getting Started with Unit Testing in Silverlight for WP7
- WP7 WatermarkedTextBox custom control
Our Top Tips & Samples
- All about WP7 Isolated Storage series
- WP7 Dynamically Generating DataTemplate in code
- 5 tips for a successful WP7 Marketplace submission
- WP7: Navigating to a page in different assembly
- WP7 ContextMenu: answers to popular questions
- WP7 ListBox: answers to popular questions
- WP7 working with Images: Content vs Resource build action
- WP7 Element Binding samples
- WP7 working with XML: reading, filtering and databinding
- Drawing in WP7: #2 Drawing shapes with finger
- WP7 TextBox Light theme problems - the solution
- Changing the WP7 Panorama Background Image dynamically with Animation
