Let's make sure that no sketches are lost when the user reloads the page. The best way to approach this is to save the stroke data as they draw. When the user reloads our application, we should add code that checks to see if there is already ink data in the local store.
We could also write files to isolated storage.
We will now save the Strokes collection to isolated storage every time a stroke is added to the
inkPresenter control. We will do this by completing the following steps:
SilverInkapplication in Launch Visual Studio.
MainPage.xaml.csfile, add the following
using System.IO.IsolatedStorage; using System.Text; using System.Xml; using System.Windows.Markup; ...