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
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
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.