I am happy to inform you that there is straightforward way to achieve your requirement. You can subscribe to the ConnectionManipulationCompleted event and check the e.Shape property. This holds the target shape. Furthermore, in order to cancel the connection all you need to do is to mark the event as handled like this:
sender, ManipulationRoutedEventArgs e)
var targetShape = e.Shape
"Test Shape 2"
I hope this will help you. Please do not hesitate to ask if you need any further assistance.
Pavel R. Pavlov
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>