how to create a Relation between two classes from code behind. created a relation for particular class but unable to define relation.
1 Answer, 1 is accepted
0
Martin Ivanov
Telerik team
answered on 09 Nov 2016, 03:25 PM
Hello,
I don't know if I understand you correctly, but I think your are using the ClassDiagram demo example of RadDiagram. And you want to add a connection (releation) between two shapes (classes). If so, you can do that by creating a new instance of ClassLinkViewModel and set its Target and Source properties to the objects of type ClassViewModel representing the classes you want to relate. Then add the ClassLinkViewModel object in the ClassDiagramGraphSource.