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, I have some tab pages, the diagram is in one page, I select some nodes and change the view port, and I switch to the other page, after some while I go back to the diagram page, the previous selected nodes become unselected, and the view port is reset. Do you know why? Thanks |
|
|
Hello Jzhou I have not been able to reproduce this at my end. Do each of your tabs have a view and view-model? If so, it's possible that when you switch back to the diagram tab, the view is being recreated with a new instance of DiagramSurface which effectively resets the selection and viewport. Does it get reset if you switch back to the diagram tab quickly, or does it only reset if you spend more time in the other tab? If it is an issue with creating a new DiagramSurface instance, then you can store the selection and viewport state in the model to restore it when the DiagramSurface is created. If this is not the case, please send me a repro project so I can look into it further. Jason Fauchelle |
|