Hi,
I’m trying to design a custom GoObject in GoExpress. It will be a large rectangle with a number of smaller rectangles inside. Each smaller rectangles needs it’s own ports.
I have thought through two approaches, but can implement neither.
-
Create a BigNode class, then add instances of SmallNode to it. I would expect GoGroup to allow you to add new elements, but at the moment I just can’t find how to add a GoObject to a GoGroup.
-
Render everything with a background image, then construct custom ports. Unfortunately, I can’t find a way to add new ports to a node. Overriding .Ports requires you to return a GoNodePortEnumerator, which is sealed and doesn’t allow you to add your own GoPort objects.
Any ideas on approaches I can take?