This is a migrated thread and some comments may be shown as answers.

Connection cap in middle

2 Answers 141 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 02 Jul 2020, 11:24 PM

Hi,

 

Is it possible to make a connection with a cap in the middle? I want to obtain an connection without caps at the start and end but with an arrow in the middle only.

Like this:    

------->-------

 

How can that be done? Thank you for your help! 

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 03 Jul 2020, 02:03 PM

Hello Dan,

For this purpose you will need to provide your own Geometry for the Connection. This can be achieved with overriding the method CreateGeometry() of the RadDiagramConnection class.

  protected override System.Windows.Media.Geometry CreateGeometry(Telerik.Windows.Diagrams.Core.BridgeType bridgeType, bool roundedCorners)

Please find an attached project which shows such custom geometry.

Regards,
Petar Mladenov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Dan
Top achievements
Rank 1
answered on 03 Jul 2020, 05:39 PM
Thank you, that could possibly work. I'll try to adapt it!
Tags
Diagram
Asked by
Dan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Dan
Top achievements
Rank 1
Share this question
or