Declined
Last Updated: 04 Jan 2017 12:32 by ADMIN
ADMIN
Pavel R. Pavlov
Created on: 10 Feb 2014 08:09
Category: Diagram
Type: Feature Request
1
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. 

Declined: Duplicate with http://feedback.telerik.com/Project/143/Feedback/Details/113488-diagrams-add-an-event-notifying-that-connectionpoint-is-added-or-removed
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
Gerhardt
Posted on: 11 Feb 2014 06:45
This functionality would make my code so much simpler. I'm persisting all the connectionpoints to a database and currently I have to handle the propertychanged event on a connection in order to know when a intermediate connection has been added or removed.
ADMIN
Zarko
Posted on: 01 Apr 2014 17:23
Hi,
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