Moving a port


#1

I have a GoIconicNode with the label positioned to the right of the icon. I want to move the port to the end of the label. I can change the appearance of the port, but not the location. I’ve tried Position, Location, nothing moves the port. Any ideas as to what might be the problem?


#2

GoIconicNode.LayoutChildren always does:
if (this.Port != null)
this.Port.SetSpotLocation(Middle, icon, Middle);
in addition to positioning the Label. One thing you could do is override LayoutChildren to move the Port where you want.