Let us start with that the RadDiagramConnection
doesn't have built-in functionality which you can use to change its appearance as showed in the attached picture.
A possible approach which you can use is to take advantage of the (object) Content
property of the RadDiagramConnection
and place for example a Rectangle
. You can take a look at the SetContent
section in the Connections
help article in our documentation where this property is further described. Then you can subscribe to the SizeChanged
event of the connection and manually calculate its rotate angle and its width. This way you can reposition the rectangle on the connection when the connection position changed.
For your convenience, we have created a sample project demonstrating the explained above approach. Keep in mind that this custom code is just a suggestion and we cannot guarantee that it will work properly in all expected scenarios. You can test and modify the project to fit the desired scenario.
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer
and share your thoughts.