GoText on top of GoPort

Hello,

I have a Custom GoNode class which contains a GoText instance for
showing some text. I have also an instance of GoPort with transparent brush and need to show in the same location. At the moment it seems
Text is hiding Port as I am not able to drag a connection from this port
as mouse cursor is not changing to hand when I hover mouse over the
port. Could you suggest a way of making port as top level object so that
connections can be made from it. Since I am using transparent brush
for port, it will not hide text of the GoText.
Thanks,
Nagaraj.

Do you

Add (port)
Add (text)
in that order in the node creation?

Hi,

Thanks for the solution. I was doing Add(port) and then Add(text).
Now I changed the order and it is working fine now.
Thanks,
Nagaraj.