I would like to change the appearance of a link depending on some data available in the from port of this link.
I beleive my entry point to do so is to derive from GoLink, overload OnPortChanged so that I can read the information, and set the pen accordingly.
However, when I tried:
I go a message ‘FromPort’ threw an exception of type ‘System.ArgumentNullException’.
I guess that during this call, the from port is still not set correctly, and I may get some information about it in the undocumented parameters of this function.
Am I in the good direction ? What should I do ?
PS : I could have some result with overloading GoView.CreateLink, but in that case, the new style is applied only when the mouse button is released, not while the link in creation is being dragged. I’m not sure the method with OnPortChanged would work either…