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, we were using WpfDiagramming version 2.0.702.20424 for a while and everything was fine. But now we are trying to migrate to version 3.0.1961.23249; We have some logic, which during loading prevoiusly saved diagrams, hide or collapse some nodes. Now we've got a problem, because we're doing this by using method DiagramSurface. FindNodeElement(IDiagramNode node), and setting Visibility on returned object reference. This method (FindNodeElement) in version 3 returns null in some cases (most propably for elements which are outside viewport).
Questions:
|
|
|
Hello You are right about the nodes not being found when they are not in the viewport. The best way to do this is if you have custom node implementations, add a new property to your node implementation to control the visibility of the node. Then in the node styles, bind the visibility of the node element to the visibility property in the node model. I've done this in the past and have found that being able to control the visibility of the nodes via the model objects works out really well. The NodeGrouping sample uses this technique which may help you. Let me know if you have further questions about this. -Jason Fauchelle |
|