Hi, I have created a set of custom shapes extending RadDiagramShape and I want to be able to recognize which shape is which after the shapes have been dragged from a RadDiagramToolbox on to the diagram and the diagram saved and later loaded. So I am thinking I can store the type of the shape in the Tag property and add seriliazation events to store and retrieve this property. However the problem is setting this property on the created shape when the shape from the toolbox is dropped on the diagram. How can I do that? Is there an event where I have access to the shape instance or type from the toolbox and the shape created in the RadDiagram Items collection?
I want to do something like:
var bpmnGallery = new Gallery
Header = "BPMN",
bpmnGallery.Items.Add(new GalleryItem("Start", new BpmnStartShape()));
and then later
shapeThatsGoingToBeAddedToTheDiagram.Tag = MyShapeClassFromTheToolbox.Tag;
I found this post which solves this problem: