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
|
So one of the requirements that we have is that the connection point are select-able and that the user can with holding the CTRL drag select multiple connection points at once and then drag all of them to some inbound connection point. Is there a way, out-of-the-box, to drag more than one connection point? Thanx, Gilad |
|
|
Hi Gilad, Sorry for the delayed reply. Neither connection selection or multi connection dragging is provided out of the box, but it may be possible to implement these in your app. I'll get back to you with more details soon. -Jason Fauchelle |
|
|
Thanx! I will be waiting. |
|
|
Hi Gilad, I have attached a sample that demonstrates dragging multiple connections. To run the sample, you'll need to change the WPF Diagrams reference to your own copy. To use the sample, click on a node, then Ctrl+click on a second node. Drag one of the connection points on one of the nodes you selected. You'll see that as well as dragging a connection from the point you clicked, a connection will also be dragging from the other selected node(s). This demo does not show connection point selection, instead it uses the simple logic of selecting the connection point that lies on the same edge as the connection point you're dragging. i.e. if you drag the connection point on the left edge of a node, a connection will also be created from the left edge of the other node you selected. The code to do this is very simple and can all be found in MainWindow.xaml.cs. It listens to all the drag events from a thumb, and then forces those events to also occur on the other connection point thumbs - which in your case would be selected. Let me know if you have further questions about this. -Jason Fauchelle |
|
|
Wow! That's awesome, I'll give it a try. Thank you!!! |
|