Hi Madhu,
As you
requested we have modified the sample. We can add nodes, groups and connections
to DiagramVM.Nodes, DiagramVM.Groups and DiagramVM.Connectiosn respectively. We
have added two nodes to DiagramVM.Nodes collections in DiagramVM constructor. And
also we have added one resource dictionary named NodeTemplates, in which we
have added node styles and templates, which in turn applied to nodes. For more
information kindly refer the modified sample from attachment.
As Madhu
requested we have added one node with SansStar data template applied, by adding
those templates in NodeTemplates resource dictionary.
As Alaguraja
requested, we have shown how to add nodes in code behind. Kindly refer the
DiagramVM constructor from DiagramVM.cs file
Regards,
Parthiban
Attachment:
DiagramBuilder_1162136a_85559d76.zip