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
|
right now, to swap out graphs on my user interface I have to clear the edges and nodes using inefficient foreach loops
what I would like to do is to use something like
however, the diagram surface never notices that the connections/nodes are removed and still draws them. Any suggestions? |
|
|
Hello, thanks for this feedback I've implemented the support for this now. This bug fix will be in the next nightly build which will be available at around 1200 GMT and will be downloadable from here: http://www.mindscapehq.com/products/wpfelements/nightly-builds Note that you'll only need to clear the Nodes collection - as this will automatically result in the connections being cleared. Another alternative is to create a new DiagramModel instance and set it to the DiagramSurface.Diagram property. This has slightly better performance and keeps the previous diagram intact - which can be garbage collected if you don't hold any references to it. Let me know if you have further questions -Jason Fauchelle |
|