Browse by Tags
All Tags » DockChanged (RSS)
-
A line has a Start and End Origin. An Origin raises the DockChanged event which you will need to atatch a handler to.
-
As I wrote earlier you have to detect whether the connection was changed. e.Actions[0] is the new line e.Actions[1] is the old Start docked element e.Actions[2] is the old End docked element All you have to do is to compare the newline.Start.DockedElement with e.Actions[1] and the same for the End element...
-
You can use the model.Runtime.CanDock property and override this to determine exactly which docking operation are allowed by the user. You can then use the great advice above (bere in mind that UpdateActions is fired after the actions have been applied to the model), or hook into the line.Start.DockChanged...
Page 1 of 1 (3 items)
|
|
|