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! Need some help. I need to control the path of a connection while the user is creating a new connection. Today when the user drags one connection point to another the connection is a straight line, when the user finally connects the connection to the endpoint the path is being calculated (in our case its a Bezier curve, we use a custom PathBuilder). Since we are implementing Bezier connection, we would like the connection to be a Bezier curve also while dragging/building a new connection. How can i customize it? Hope i managed to explain myself well. In addition, we need to implement this magnetic behavior, in our case all nodes have only once inbound connection point. We need to implement a feature that when the user drags a connection near the node's left edge we will connect it for the user. Like the port has this magnet that pulls the connection to it. Is there a way i can listen to that connection while it is being drawn? (i'm talking about the connection that is drawn while dragging anew connection between two connection points. Thanx, Gili |
|
|
Hello, apologies for the late reply These are both good features. Unfortunately WPF Diagrams does not provide any customization hooks for either of these, and we don't have the time to implement them right now. I have noted them down to look at in a future version. I hope the lack of these 2 features is not a total show-stopper. -Jason Fauchelle |
|
|
Ok, that's not a show stopper, I guess we can decide to have our own implementation for it if it would be that important. But there must be at least a way to control the color, right? If so - how do i do that? Cause although i have customized the color of the connections, it did not apply on the connection that is being drawn while dragging. Gili |
|
|
Hi Gili, Yes, the style of the new-connection line can be customized including its color and thickness. Here is an example style:
And you can apply this by setting it to the DefaultCreateConnectionLineStyle property of the DiagramSurface. Let me know if you have further questions about this. -Jason Fauchelle |
|
|
Sounds great! I'll give it a try. Thanks much! Gilad |
|