Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic CompleteModify method isn't called while moving multiple nodes (Read 246 times)
Ashot
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Oct 26th, 2020
CompleteModify method isn't called while moving multiple nodes
Oct 26th, 2020 at 2:32pm
Print Post  
If I select one node and move it, the node will fire StartModify and CompleteModify methods. If I select multiple nodes and move all of them, all nodes will fire StartModify, but not CompleteModify. Could you please explain this behavior? Is it expected behavior or just a bug?

please have a look at the attached demo sample. Just run, move nodes and look in the output window.
  

CompleteModifyDemo.zip ( 1419 KB | 2 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2300
Joined: Oct 19th, 2005
Re: CompleteModify method isn't called while moving multiple nodes
Reply #1 - Oct 26th, 2020 at 3:02pm
Print Post  
It calls a different CompleteModify(bool, InteractionState) overload when moved with multiple selection, but that one is internal. We'll have in mind publishing it or unifying the overloads for upcoming release. As a work-around you could handle the SelectionModified event to update nodes for time being.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ashot
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Oct 26th, 2020
Re: CompleteModify method isn't called while moving multiple nodes
Reply #2 - Oct 26th, 2020 at 3:33pm
Print Post  
thank you for your quick response.
Is it going to be fixed soon or it worths making workarounds?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2300
Joined: Oct 19th, 2005
Re: CompleteModify method isn't called while moving multiple nodes
Reply #3 - Oct 27th, 2020 at 5:40am
Print Post  
We should release in a couple of weeks.
  
Back to top
 
IP Logged
 
Ashot
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Oct 26th, 2020
Re: CompleteModify method isn't called while moving multiple nodes
Reply #4 - Oct 27th, 2020 at 8:14am
Print Post  
Thank you.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2300
Joined: Oct 19th, 2005
Re: CompleteModify method isn't called while moving multiple nodes
Reply #5 - Oct 28th, 2020 at 9:51am
Print Post  
We won't be able to unify them for current release. This build adds protected visibility to the other overload -
https://mindfusion.eu/_temp/wpfdiag_clr45_complete.zip

So the one you already override in your project is called for direct modifications of specific DiagramItem, the newly visible one is called for indirect ones (through groups, container children, node's links, multiple selection...)

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint