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
|
I have custom styles in my diagram. See the attached files. There is a simple logic. If a connection is selected, it will be highlighted. I would like to improve this logic: if I a diagram node is selected, all the adjacent connections should be highlighted. Thanks, shuraz. |
|
|
Hi Shuraz, To do this, I'd recommend creating a custom connection implementation that extends DiagramConnection (if you don't already have one). On your custom connection, add some kind of IsHighlighted boolean property. Then you can listen to when a node is selected, iterate its connection models, and set them to be highlighted. (And de-highlight any previously highlighted connections). The best way to visualize the connections as highlighted is to use a DataTrigger within your ConnectionPathStyle. Here's an example:
Let me know if you have further questions about this. -Jason Fauchelle |
|
|
Thank you, Jason. It helped me. |
|