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

Handling click of connector

2 Answers 89 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Roy
Top achievements
Rank 1
Roy asked on 17 Oct 2016, 08:52 AM

I would like to handle a double click event on a connector. For shapes there is a OnShapeDoubleClicked, but I can't seem to find a way of handling the double click of an connector.

I tried handling the double-click event of the diagram itself, but can't seem to find the connector at the click location.

Is there an easy way to achieve this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 18 Oct 2016, 02:03 PM
Hello Roy,

You can subscribe to the MouseDoubleClick event of the RadDiagramConnector using EventManager.RegisterClassHandler() method. Check the code snippet below.
public MainWindow()
{
    InitializeComponent();
    EventManager.RegisterClassHandler(typeof(RadDiagramConnector), MouseDoubleClickEvent, new RoutedEventHandler(MouseDoubleClick));
}
 
private static void MouseDoubleClick(object sender, RoutedEventArgs e)
{
  //your code here
}

Hope this information is helpful.

Regards,
Dinko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Roy
Top achievements
Rank 1
answered on 24 Oct 2016, 02:19 PM
Thanks, usings your solution I managed to create a working solution to my problem
Tags
Diagram
Asked by
Roy
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Roy
Top achievements
Rank 1
Share this question
or