How to check if two nodes can be connected?

Hi,

I need to do some checking before the user tries to connect two nodes through their ports. Any suggestion where to put it? I checked DiagramEvent, but only “LinkDrawn” was fired. Do we have something like “BeforeLinkDraw”?

Thanks.

I think the Intro page on validation should answer your questions.