We would like to customize the node selection outline by overriding DrawSelectOutline from the View class. We followed the basic instructions found in the KB article http://www.syncfusion.com/support/kb/diagram/Default.aspx?ToDo=view&questId=31 to subclass the view. Everything works as expected except when we save and re-open a diagram. When we re-open the diagram, we no longer have the sub-classed view and thus never make it into our derived DrawSelectOutline method.
We used the DiagramBuilder sample as our starting point. I''ve attached the derived classes that we added. In order to use the derived classes, I changed the following lines of code in DiagramForm.cs to use the new classes:
//this.diagramComponent = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram();
this.diagramComponent = new MyDiagram();
and
//this.diagramComponent = new Syncfusion.Windows.Forms.Diagram.Controls.Diagram();
this.diagramComponent = new MyDiagram();
As I said, it works for a new diagram but not a saved diagram. Hopefully we''re just making some simple mistake with the serialization. Any help as to what we''re missing would be greatly appreciated.
Chris C.
Derived.zip