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 Jason, I am trying to define my own ConnectionPoint but keep running into a problem with points offset/positioning when ConnectionPointThumb_DragStarted is triggered. When connection line start point is set it doesn't consider RenderTransform values of connection point Rectangle -
Start point for connection line is then set outside of point rectangle (that would be x and y before transform rendering) on the node even though rectangle itself is positioned properly. I tried to change ConnectionPointPositions property (instead of using RenderTransform) on Node level which helped but ran into another problem when PositionCalculatorConverter crashes on parsing exception in case I tried to specify negative value. Any ideas how to solve this? regards gmd |
|
|
Hello gmd To change the visual look of connection points, it is recommended that you create a DataTemplate and set the ConnectionPointTemplateSelector property of a DiagramFormatter. In your case, you could take the Rectangle from the Style code you posted and put this into a DataTemplate. Then create a ms:FixedTemplateSelector, set its Template to be the connection point template and then set the ConnectionPointTemplateSelector property of a DiagramFormatter to be that FixedTemplateSelector. If however you wish to continue in the way you have implemented it so far, you can move the TranslateTransform from the Rectangle and put it into a setter on the style instead. Let me know if you need help with any of this. Jason Fauchelle |
|
|
Thanks Jason that worked .. I did not realise there was a ConnectionPointTemplateSelector property .. it's all good now ... regards gmd |
|