Allow specific connections to Link to a port which is defined as LinkableFrom as true

I have a node and say a port is made LinkableFrom as true. But What I want is the port which is defined as LinkableFrom is to accept link (i.e Act as LinkableTo) from some pre defined specific nodes but not from other nodes.

Is there any provision for this requirement ? if Yes please let me know.

At the model level, you can override the predicate IsLinkValid.

At the diagram level, you can override the predicate LinkingTool.IsValidLink.

Read about this in the GoXamIntro.pdf document in the section about “Link Validation”.