Hello again!
I'd like to create custom class that is RadDiagramConnection and has its full functionality within RadDiagram , but with some additional data ( implementation of additional interface).
When I am creating it via inheriting from RadDiagramConnection ( as it is recommended in Telerik documentation here: https://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/create-custom-connectioncap ).
But when I add it to my RadDiagram, I see nothing. As I know where my LineObject is I can click on it and see 2 ancor-points, but I can not see RadDiagramConnection itself. Picture is attached.
Would you be so kind to tell me how I can implement this thing?
This is my .cs file
public class LineObject : RadDiagramConnection { }This is my Xaml file:
<telerik:RadDiagram > <telerik:RadDiagramConnection StartPoint="250,250" EndPoint="150,150" SourceCapType="Arrow1Filled" TargetCapType="Arrow1Filled" SourceCapSize="20,20" TargetCapSize="20, 20" StrokeThickness="5" Background="Red" Stroke="Red" /> <imageeditor:LineObject StartPoint="150,250" EndPoint="250,150" SourceCapType="Arrow1Filled" TargetCapType="Arrow1Filled" SourceCapSize="20,20" TargetCapSize="20, 20" StrokeThickness="5" Background="Blue" Stroke="Blue" /></telerik:RadDiagram>
Best regards,
Tatiana