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
|
ShowConnectionPoints="True" makes the connection points visible when I hover the nodes. I need these connection points to always be visible. How can I accomplish this? Thanks. |
|
|
Hello To do this you'll need to create a custom connection point thumb style and use triggers to define the visibility behaviour. I have attached a sample that demonstrates how to do this. This sample also changes the color of the connection point thumb when the mouse is over the node. - You can ignore this if you don't need such functionality. The code you'll be interested in is in App.xaml. Here I have a custom ConnectionPointThumb style with a single trigger that forces the thumb to be visible even if the mouse is not over the node. I've also included the default triggers (which are commented out) in case you were interested in some of the inbound/outbound functionality. After the thumb style is a custom DiagramNodeElement style. This is required to set the ConnectionPointThumb style which is performed on line 152. If you have other node styles, you can make them be "BasedOn" this master node style. Then at the end of the file is the usual DiagramFormatter. The NodeStyleSelector property is set so the diagram surface control knows to use this custom node style. (You can ignore the ConnectionPointTemplateSelector if you like, this is used to change the connection point color). The DiagramFormatter is used to set the Formatter property of the DiagramSurface in MainWindow.xaml. Let me know if you have further questions. Jason Fauchelle |
|
|
Works like a charm. Thanks a lot! |
|