I''m a beginner to SyncFusion - Diagram.
During runtime, I''m trying to add SymbolModels to my SymbolPalette. I think I''ve done that successfully with the following code snippet:
Syncfusion.Windows.Forms.Diagram.SymbolModel catSymModel = this.paletteGroupView1.Palette.AddSymbol("Cat");
When I run this code so far, I see a new icon for this "Cat" Symbol Model appear in my palette.
So now when I drag it onto the diagram, I get an "Overflow error" and sometimes it crashes.
That is to be expected.
But the goal is I want just a simple rectangle to appear on the diagram.
I have no idea how to proceed next. Please help.
Thanks for your time.
The basic aproach that I think of is to use the symbol designer that comes with the syncfusion install. Then you can load the pallete that you design into the palette control. It is also possible to load symbols into the palette control at runtime in code. The first method is described here http://www.syncfusion.com/Support/article.aspx?id=10490
This describes how to create a custom symbol and use it in a diagram.