I am in the process of making a note taking app, in which the user can create, edit and delete notes. Once the app is closed all data should be stored in isolated storage. I have created a note class which sets some properties below:
public string strNoteName { get; set; }
public string strCreated { get; set; }
public string strModified { get; set; }
public bool boolIsProtected { get; set; }
public string strNoteImage { get; set; }
public string strNoteSubject { get; set; }
public string strTextContent { get; set; }
These are put into an ObservableCollection<note> GetnotesRecord() which can be displayed in the Mainpage using a listbox. On touch there is an event handler for SelectionChange which passes the item to the editpage where items such as strTextContent and strNoteName can be edited.
After adding all this, I want the data to be saved to isolated storage so it can be loaded next time the app runs.
Is it possible to save an ObservableCollection<note>? If yes, how can it be retrieved from the isolated storage when I'm starting the app later?
PascalCasefor public members. - Dai