I'm working on an application that has an InkCanvas, an image that is set as the background image to the InkCanvas, as well as numerical data (one positive integer value per Stroke) that is tied into each Stroke on the InkCanvas.
My first mental approach was to overload the Stroke class to add the numerical data as a field. However, I'm not certain that I can save the StrokeCollection using InkCanvas.Strokes.Save(FileStream);
My second mental approach was to Save the collection of Strokes, and have a different collection of the numerical values for each Stroke stored in a separate SQLite file. However, I'm not certain that Strokes in the StrokeCollection are stored in order, and loaded back in order.
So the question is, would either of these two approaches work in order to store the Strokes, the numerical values associated with each Stroke, and the filename of the image or if possible the image itself, without generating more than one file?