Hi,
I need to pass some information on DiagramToolboxItem when I dropped it to XamDiagram via XamDiagramToolbox, I have event wired up on XamDiagram for Item_Added, when Item_Added executes, I can see Item Object in DiagramItemAddedEventArgs, but when I try to view the content of it, it is NULL, I need DiagramToolboxItem to carry Guid Information to the XamDiagram, How can I achieve that
Hello Manoj,
I have been looking into your latest post and it seems that I am missing something from your scenario. Would it be possible for you to provide me with a small sample application, showing the functionality you are using?
This way I would be able to further investigate this matter for you.
Looking forward to hearing from you.
I dont want the shape information, my toolbox contains the items which are custom in nature, I am identifying things using datatemplate, however items which I populate on toolbox are of same type with different id, just to give you an example, my toolbox contains "Person" type class as well as Person Object(Tom, Harry, etc) in custom categories, what I want is that when I drop an item on xamdiagram, I would like to know which object I have drop.
Let me know if I am not clear.
Thank you for contacting us.
I have been looking into your question. When you drag a new item from the toolbox of the XamDiagram it is expected its content to be null as the content of the item is not set.
If you would like to get the shape, that has been dragged you can use the ShapeType propery of the DiagramNode.
If I have misunderstood your requirements would you please provide me with more detailed information on the functionality you want to achieve?
Please do not hesitate to let me know if you have any further questions on this matter.