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 selecting connections they are not ordered to front. They are overlapped by other connections .. see attached images setting ZIndex does not help .. regards gmd |
|
|
Hello gmd The DiagramSurface does not bring selected items to the front. The easiest way to get this functionality would be to listen to the DiagramSurface.SelectedItemsChanged event and then execute the BringToFront command if the selected item is a connection:
Jason Fauchelle |
|
|
Hi Jason, Thanks for the answer. Unfortunately your proposed solution doesn't work for connections - GetSiblingElements (in ZOrderHelper) has commented code which would return actual connections. Currently it returns only nodes. (Apparently it's because AppendIfDirectZOrderableChild method accepts IDiagramPositionable which IDiagramConnection is not) Anyway i tried to change ZOrder of connection manually and with a hardcoded value higher than all the others, just to see if changing the ZOrder property would bring connection to the front but it didn't work even though the actual value of ZOrder was changed. Any ideas? regards gmd |
|
|
Thanks for pointing out this issue, I had only tested with 2 connections which happened to work. I have restored the commented code which was a bug introduced by refactoring the code for version 3.0. So in the next nightly build, the BringToFront command will execute properly. Jason Fauchelle |
|
|
Thanks Jason, will give it a try. regards gmd |
|
|
Jason, it works now. I get the connections to the front with mouse over. Thank you very much regards gmd |
|