Adding different node shapes

I would like to add different node, each will have different shape (custom shape), from ports, to ports, and so on…

As per my understanding, the go:Diagram supports only one data template. So to have nodes of different shapes

  • Use the NodePanel.Figure property to change between the predefined shapes.
  • For custom shape set the Path.Data property to a custom Geometry (not sure how to do this)

Can we have multiple data templates, is there any possibilities for that?

GoXam Diagrams support multiple templates for Nodes, for Groups, and for Links. You just need to set up the Diagram.NodeTemplateDictionary. Read more in the GoXamIntro.pdf document about template dictionaries. Many of the sample apps demonstrate them, also.

Thanks a lot Walter, have used the NodeTemplateDictionary it worked perfectly fine.