Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Node Reparented Event? (Read 1210 times)
AnthonyBrien
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Feb 5th, 2008
Node Reparented Event?
Feb 29th, 2008 at 2:33pm
Print Post  
I have a diagram consisting of a hierarchy of ContainerNodes. I want to update my underlying data model whenever nodes are reparented.

If I subscribe to the Diagram.NodeModified event, after I move a node to a ContainerNode, I get notified, but the parent node is not yet changed (I get the parent node through ContainerNode.GetContainer(node)).

Is there another event I could use that is fired after the node is dropped into the container node?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Node Reparented Event?
Reply #1 - Mar 1st, 2008 at 7:46am
Print Post  
If you enable the UndoManager, you could handle the ActionRecorded event and check if the type of the recorded command is AddToContainerCmd. Having specific events raised when nodes are added or removed from a container will be useful, so we'll try to implement them in the 5.0.3 release.

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