Valid/Invalid port highlight

Hi Walter.

I want to do some port validation, where

  1. I highlight any ports hovered over with a green box as attached in the image
  2. When I draw a link, the ToPort is also validated at the end of drawing, showing a green or red box depending on logic.
    In the devexpress implementation, we had QueryConnectionPoints event which used to fire on hover and an enum ConnectionElementState to set state to visible, hidden or disabled. setting connection point states. How can we achieve something like this in goxam?
    Am looking for a way to achieve such implementation,


Have you overridden IsValidLink in order to perform link validation during the operation of the LinkingTool and RelinkingTool? Normally it is impossible for the user to draw a new link or reconnect an existing link to form an invalid link relationship, so there isn’t much need for the red box as you show.

For the green box shown when hovering over a port for which the user can draw a new link, you should be able to implement that by showing a green box only if LinkingBaseTool.IsValidFrom or LinkingBaseTool.IsValidTo is true.