Unplanned
Last Updated: 04 Jan 2017 12:33 by ADMIN
ADMIN
Telerik Admin
Created on: 15 Apr 2013 09:17
Category: Diagram
Type: Feature Request
7
Diagram: Add an event notifying that ConnectionPoint is added or removed.
Currently there is no straightforward way to notify that a point is added/removed from the ConnectionPoints collection of the RadDiagramConnection.
1 comment
ADMIN
Zarko
Posted on: 01 Apr 2014 17:23
Hello,
Currently there are two possible workarounds for this issue:
1) You could handle the CommaneExecuted event and check if the command's name is Modify Connection Points:
private void OnDiagramCommandExecuted(object sender, CommandRoutedEventArgs e)
{
    if (e.Command.Name == CommandNames.ModifyConnectionConnectionPoints)
    {
        var connection = this.diagram.SelectedItems.OfType<IConnection>().FirstOrDefault();
        if (connection != null)
            //connection.ConnectionPoints
    }
}
2) Use custom ConnectionManipulationTool (inherit ours), override its MouseDown method and check if in this case you'll add a new Point