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
|
I am using the new Diagram 3.0 latest nightly build. The problem actually exists long time ago, but I believe it's being fixed. However, it comes back again now in this new version. The reproduction steps are very easy:
Please fix this asap for me since I need it for the diagram to work properly on dynamic nodes relocation. Please let me know if you need a repro project. Thanks. |
|
|
Hello Unfortunately I was unable to reproduce this in any way. Please send a repro project and we will solve this promptly. Jason Fauchelle |
|
|
ok, here is the poc project created earlier. simply run it and you should see it. however, in order to load the inputs correctly, do specify the path before clicking on the button. The processing happened on TestPlanDocumentViewModel. *I can't attach file more than 5mb i think, it failed on the first time. so i deleted all the compiled binaries, please re-compile and run it. Thanks. |
|
|
Thanks for the repro project. I have reproduced the issue and have found roughly where the problem is, but it will take some time to solve this. I'll continue working on this tomorrow. The cause of this is loading the diagram in a BackgroundWorker. Jason Fauchelle |
|
|
Hello This issue will be resolved in the next nightly build. Jason Fauchelle |
|
|
Hi, it worked as expected now. :) Thanks for your fix. However, after I done more integration, I found another weird behaviour coming from DiagramSurface. Please find the repo project, compile and run it, drag some input files into it, and try to "Pan" on the diagram. You'll find that you no longer can "Pan"! Basically the drag action is being 'consumed' and the diagram responded with random 'jumping' around. Let me know if it is a bug from diagram? or my integration code. Thanks. |
|
|
Hello I've only had a quick look at this, but the cause of the problem seems to be coming from the SimpleWindow class. Something is messing with the left mouse button, but the right mouse button works fine. When I replaced SimpleWindow with a standard WPF Window, the problem went away. Jason Fauchelle |
|
|
Hi, It seems to be like the Diagram is responding to MouseDown event in a weird way. As long as I added "e.handled = true" on the DiagramSurface's MouseDown event, the problem no longer appear. That's why I am wondering is it a bug? By the way, the SimpleWindow is just a simple extension of the WPF Window that added "DragMove()" so that user can drag and move the window when clicking on any area. |
|
|
Hello I have added e.Handled = true in the mouse down handler so that this issue will be resolved in the next nightly build. Jason Fauchelle |
|