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
|
Me again :) I was wondering if it was possible to add Connection Points to a node dynamically? One of the things we need is to be able have a node and not know how many things are going to need to be connected to it in advance - i wanted to configure a node so that, when a connection was made to it, that it generates an additional connection point for use by something else? I saw that it was possible to configure a node to have multiple connection points for a given edge in the FlowDiagrams.ConnectionPointRelocation example but could i have it so that extra connection points were added after i had placed the node on the DiagramSurface? Thanks! Martin BG |
|
|
Hello Martin Indeed it is possible to add connection points to a node dynamically. I will be putting out a blog post about this in a few more days with details about how to do this, but for now, here is the basic idea: Implement your own type of FlowDiagramNode. Now simply add connection points to the ObservableCollection when you need to, and they will dynamically appear on the node. Try this out and let me know if you get stuck. Cheers |
|