Winforms version of the WPF Custom Shape example

1 Answer 20 Views
Diagram, DiagramRibbonBar, DiagramToolBox
Troy
Top achievements
Rank 1
Troy asked on 24 Jan 2022, 05:33 PM

Hi all, I'm trying to do something very similar to the WPF Custom Shape example; add controls to a shape in some sort of container (panel,...)

WPF Example desired in Winforms

Is there a Winforms version of this example somewhere?

Future Request:  I think (IMHO) that there should be a section for this.  Defining a Custom Shape, Adding Controls, Setting Custom Connection Points, Adding the new shape to the Toolbox, Configuring the Properties Editor, and setting up Drag-Drop.  If you are creating a custom shape all of these are parts of the effort.  The Documentation is all spread out over each element with no real guiding document to cover what all is possible/necessary to get a working shape (that i could find anyway).

1 Answer, 1 is accepted

Sort by
1
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Jan 2022, 09:23 AM
Hello, Troy,   

The provided feedback is greatly appreciated. 

RadDiagram from the Telerik UI for WinForms suite doesn't offers such an example like the referred one in WPF since the controls from the two suites have different internal implementation.

I would recommend you to have a look at the following forum thread which demonstrates how to add a custom shape RadDiagramToolbox :
https://www.telerik.com/forums/create-custom-items#4278105 

In addition to this, it is possible to host any control in the RadDiagramShape by using a RadHostItem. A sample approach is demonstrated here:
https://www.telerik.com/forums/extended-diagram-shape#4315902 

Please give the sample approaches a try and see how they would work for your scenario.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Troy
Top achievements
Rank 1
commented on 28 Jan 2022, 06:04 PM

THANKS Dess, the RadHostItem was exactly what I was looking for.  I loaded a RadPanel up with controls and added just it via the Host Item and all looks good.  The Toolbox and Drag Images is good too.  Sorry, its hard to find the good search words for some of this...
Tags
Diagram, DiagramRibbonBar, DiagramToolBox
Asked by
Troy
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or