You aren't going to be able to use XmlSerialization in this case as not
all the types that derive from Brush will have public setters for properties
which you need to set (the HatchBrush, for example).
My recommendation would be to have another class that you generate which
has the information which you need to create instances of the brush you
need, and then serialize that.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.