I have a generic collection of shapes that I need to pass through WCF to store in a database for future/shared use. Unfortunately, the System.Windows.Shapes are all sealed, so I can't inherit them and make a serializable copy of them. I "could" write my own custom set of serializable shapes, as I have written 3 custom shapes for my app anyway, but I'd like to not have to if possible.
I am fully aware that I could use a XAMLReader and XAMLWriter to take them off the screen, and put them back, but this isn't quite good enough, as the size of the Grid containing the shapes isn't always the same, and I need the shapes to be repositioned accordingly. The shapes are being used as an overlay on another image, and it is VERY important that the shapes remain in the same place over the background image.
Any ideas or help would be appreciated.
~md5sum~