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
|
Hello Jason, I saw you put a CanConnectToConnections boolean, but can you tell me how I can do something like "CanConnectFromConnections"? The aim is to forbid all Connection creations from any Connection. Thank you Leon |
|
|
Hello Leon The connectivity of connections can be controlled by creating a custom connection implementation. If you do not currently have custom connections, simply create a new class that extends the current type of connections that you are using in your diagram. Then make sure your diagram now uses instances of your custom connection type. i.e. In the CreateConnection method of your connection builder, you'll want to create an instance of this custom connection type. Now in your connection implementation, override the CanOriginateNewConnections property to always return false. The ActivityDiagrams sample is useful if you need help implementing a connection type. Apologies the CanConnectToConnections property threw you in the wrong direction, we may add a CanConnectFromConnection property in the future for convenience, but won't add it right now. Let me know if you have questions about this. -Jason Fauchelle |
|
|
Thank you Jason, I succeded in doing this, by wroting :
|
|