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'm trying to do something that is supposed to be super simple but is not. I just want the connection points to always show on the diagram. I bumped into a support ticket: http://www.mindscapehq.com/forums/thread/322145 But this is old, I'm not sure if it applies for V4 + i couldn't make it work. Isn't there a property you set that makes it always show? Why is something so basic is so complicated to achieve? Please help. Gilad |
|
|
Hi Gilad, I've attached an updated version of the project from the other thread. The way this is done changed in version 3 when we improved the performance. The root node style is now split into 2 templates - editor and view. Editor template contains all the UI controls need to interact with the node such as the mover, resizer, rotater and the connection point thumbs (which is what visualizes connection points). View is an extreamly cut down template which simply displays the node. Creating all the UI controls is very expensive, but only really needs to be done when a node is going to be interacted with. So, we only apply the editor template to a node when the mouse is over the node, or when it is selected. In the sample I attached I am changing this by including the connection point thumbs in the view template as well as the editor template. (App.xaml lines 253-287) I also keep the connection point thumb triggers commented out so that they are always displayed. Note that ConnectionPointThumb has the largest impact on the performance compared to all the other UI controls due to how many of them there are. A further improvement to my changes could be to display the simplest visual to show connection points (such as rectangles), rather than the ConnectionPointThumb controls themselves. Hope that helps, sorry connection point visibility is not so easy to control. -Jason Fauchelle |
|