I'm trying to show a topology structure of a hardware system via radDiagram, however, didn't find the way to display a image inside a RadDiagramShape. Someone help me plz?
I'm using RadDiagram for making a designer in our system. I have three parts in my screen, (RadDiagram, RadDiagramToolBox and ToolBar).
What I have to display in my RadDiagramToolBox are icons (images for my custom shapes). For a reason, my custom shapes can not inherit from RadDiagramShape. That's why the RadDiagram didn't accept my custom shapes and I made MyDesigner which is inhering from RadDiagram, and override the this.Drop += MyDesigner_Drop;
Dess | Tech Support Engineer, Principal
Telerik team
commented on 23 Aug 2022, 04:43 AM
Hi, Ahsan,
The following KB article demonstrates a sample approach how to add custom items in the RadDiagramToolbox:
I'm using
RadDiagram
for making a designer in our system. I have three parts in my screen, (RadDiagram
,RadDiagramToolBox
andToolBar
).What I have to display in my
RadDiagramToolBox
are icons (images for my custom shapes). For a reason, my custom shapes can not inherit fromRadDiagramShape
. That's why theRadDiagram
didn't accept my custom shapes and I madeMyDesigner
which is inhering fromRadDiagram
, and override thethis.Drop += MyDesigner_Drop;
Hi, Ahsan,
The following KB article demonstrates a sample approach how to add custom items in the RadDiagramToolbox:
https://docs.telerik.com/devtools/winforms/knowledge-base/add-custom-items-to-diagram-toolbox
Whenever the end-user drags the item from the toolbox and drop it onto the diagram, a shape with the respective shape will be created.