On my RadDiagram control I have generated elements with connections. How to prevent moving connection?
I want to allow the user only to detach and attach the connection. Forbidden situation is visualised in forbiddenSituation.PNG. If the user unpin the connection and he/she doesn't drag connection to another item, the connection shouldn't be changed. So all connections should have Target and Source element.
I use ConnectionManipulationCompleted event. When ManipulationStatus is Moved I want to Undo this, but the truth is only the previous change will be undone, not current connection moving.
I was thinking I can cache previous state of connection (target and source) on ConnectionManipulationStared and set those if on ConnectionManipulationCompleted target or source are null. But it doesn't work.