Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Different behavior when drawing a new node using WPF diagramming v4 (Read 582 times)
Kostya
Junior Member
**
Offline


I Love MindFusion!

Posts: 59
Joined: Aug 5th, 2014
Different behavior when drawing a new node using WPF diagramming v4
Feb 16th, 2024 at 2:15pm
Print Post  
Hi,

I discovered that the behavior when drawing a new node has changed in v4. I used the CustomBehavior trick to

1. draw a node inside another node (container),
2. cancel it on Diagram_NodeCreating when releasing the mouse button and
3. show a node creation dialog (editor) on NodeCreateCancelled.

Previously, with v3.9, the modal dialog appeared and the node remained in the background (see the screenshot attached). Now, any click inside the container opens the dialog. Although I haven't started drawing it yet. And even if I draw a node, it will disappear when the dialog opens.

Could you please tell me how to return the previous behavior, where the dialog appears only when the node has actually been drawn and remains visible on the diagram until the dialog is closed?

Let me attach a test project where this case is reproduced.

Thanks,
Kostya
  

MindFusion_v4_node_drawing_issue.rar ( 1184 KB | 26 Downloads )
create_new_node_dialog.png ( 13 KB | 30 Downloads )
create_new_node_dialog.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3303
Joined: Oct 19th, 2005
Re: Different behavior when drawing a new node using WPF diagramming v4
Reply #1 - Feb 19th, 2024 at 7:31am
Print Post  
Hi,

Try this build -
https://mindfusion.eu/_beta/wpfdiag406.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Kostya
Junior Member
**
Offline


I Love MindFusion!

Posts: 59
Joined: Aug 5th, 2014
Re: Different behavior when drawing a new node using WPF diagramming v4
Reply #2 - Feb 19th, 2024 at 1:06pm
Print Post  
Hi Slavcho,

Thank you for the quick response and fix! Now it works correctly, as before.

Kostya
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint