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 I would like to know how to search and specific node in a flow diagram and select that node in read-only mode. For example, I would like to search for the start node, or to type a GUID or custom ID in a search box and to let the diagram select the corresponding node for me in read-only mode. An example project or steps to do would be much appreciated! Thank you! |
|
|
Hello In your model, you should have an instance of an IDiagramModel. If not, you can create an instance of Diagram, and bind the DiagramSurface.Diagram property to this instance. Create a search method in your model, here you can iterate through the Nodes collection of the diagram model to find the node that the user is searching for. If a node is found, you can select this by setting the SelectedItem property of the DiagramSurface to be the node model that was found. You may also want to manipulate the viewport via the SetViewport method to bring the selected node into view. I recommend working on this part after the other functionality is done. Let me know if you have any questions about any of these steps. -Jason Fauchelle |
|