Hello, I'm making a custom node shape with the following code:
ShapeNode recStart = diagram.Factory.CreateShapeNode(new Rect(0,0,130,52));
recStart.Shape = new MindFusion.Diagramming.Wpf.Shape( new ElementTemplate[] { new LineTemplate(0, 100, 50, 74), new LineTemplate(50, 74, 100, 100), new LineTemplate(100, 100, 100, 0), new LineTemplate(100, 0, 50, 0), new LineTemplate(50, 0, 0, 0), new LineTemplate(0, 0, 0, 100) }, new ElementTemplate[] { }, null, FillRule.Nonzero);
but it seems that when i use the SaveToString and LoadToString the custom shape is gone, and i get a normal rectangle.
Anything i can do to solve this ? Thanks in advance, Miky.
|