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 using custom nodes (inherting from the diagramnode class) whats the best way to implement flip vertical / horizontal functionality. Weve been using wpf transformations to mirror the diagram along a given axis, but this means that the connection points dont follow the node, A debug session confirms that the location of the connection points hasnt changed. Basically, how do we implement this and get the connection points to follow the mirroring behaviour? Cheers |
|
|
Hello Richard I think the best way to implement this functionality would be to manipulate the model object rather than using transforms. This is especially true if the flipped diagram is to be edited by the user. You can reposition the nodes by changing their Bounds property values. You could then write a method on custom nodes that change which side the connection points are on. You can change the connection point positions on a node by setting their PositionCalculator properties. This will cause the connection point positions to be recalculated. You may also need a way to flip the shape of the nodes if they are not symetical. This can be done with transforms in the custom styles. This is just an outline of how I would approach this functionality. Let me know if you have any questions. -Jason |
|