This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
When I relocate one end of a connection (conneciton1) and move it toward another connection (connection2), connect2's AddConnectionPoint method will be called. Is there a way that I can get the information about connection1? As shown in the attached screenshot, there are two types of connection1 (horizontal). I am wondering if you could add some virtual method in the DiagramConnectionBase class public virtual IDiagramConnectionPoint AddConnectionPoint(Point point, IDiagramConnection connection, double buffer) |
|
|
Hi Xiaochu, Thanks for the suggestion. I have considered this, but don't plan on adding this to the current version. If this method was added to DiagramConnectionBase, the ConnectionRelocatorThumb would not be able to call it. It can not cast IDiagramConnection to DiagramConnectionBase due to DiagramConnectionBase being a generic class. It would be best if this method was added to the IDiagramConnection interface, but adding to an interface is a breaking change. If you describe what you are planning to do, I could look to see if there are other alternatives. -Jason Fauchelle |
|