This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
We use a custom sub-class of FlowDiagramConnection for all of our connections. We have this setup through a custom ConnectionBuilder and ConnectionRelocator; This all works. The samples clearly show me how to setup custom node serialization (which I have), but nothing about custom node serialization. How should we handle this? We have domain specific knowledge we store as part of our connections that we need to reconsistent at deserialize time. We have this all working for nodes, but we are a bit stuck on connections. |
|
|
Hello Matt I've attached a modified version of the sample I sent you for the previous issue. Again, you will need to add references to your copy of WpfDiagrammingFoundation and WpfFlowDiagrams. Also, you will need to download the nightly build from tomorrow the 24th of July to get the custom connection serialization hooks that have been added to the FlowDiagramXmlSerializer. Using this update is similar to custom node serialization. You simply need to listen for the UnknowConnectionDeserialized and UnknowConnectionSerialized events. In the event handlers you need to write/read the start element of the xml connection tag along with any custom properties. The sample demonstrates how to do this based on the custom connection class you described earlier. Regards |
|