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
|
Hi, I found that the ConnectionPointThumb is being rendered below the connection lines / arrowhead. Any way to make sure all connection lines are rendered below the nodes/connectionPoints? |
|
|
Hello You can set the ZOrder property of the connection models to force them to be rendered below nodes. The easiest way to do this is to set the ZOrder property of the connections after they are created in the CreateConnection method of a custom IDiagramConnectionBuilder. -Jason |
|
|
I see. Right now it works nicely by setting it to -1 whenever I create a connection model. :) By the way, is it possible for me to toggle the ZOrder whenever user is Selecting / Dragging a node, so that the node and all its connection is always on top of others? ZOrder sounds like a usable properties to do the trick, is it feasible in this case? |
|
|
At the moment the DiagramSurface can not listen to changes in the ZOrder property. You could use the BringToFrontCommand on the selected node and its connections to get the desired behaviour when dragging a node. But you would not easily be able to put them back to their previous ZOrder positions when a different node is selected. I'll certainly improve the ZOrder usage in a future enhancement. -Jason |
|
|
Thanks for considering the ZOrder usage as future enhancement, hope I can get it sooner as we really need it. ;) By the way, what is the BringToFrontCommand that you're referring to? I can't seems to find it anywhere in the diagramSurface. |
|