Inheritance: VplElement
        public Port(string name, Node parent, PortTypes portType, Type type)
        {
            ParentNode = parent;
            HostCanvas = ParentNode.HostCanvas;
            DataType = type;
            PortType = portType;
            Name = name;

            if (portType == PortTypes.Input)
                Style = HostCanvas.FindResource("VplPortStyleLeft") as Style;
            else
                Style = HostCanvas.FindResource("VplPortStyleRight") as Style;

            MouseDown += Port_MouseDown;
            ParentNode.SizeChanged += ParentNode_SizeChanged;

            ParentNode.PropertyChanged += ParentNode_PropertyChanged;
            ConnectedConnectors = new List<Connector>();
            Origin = new BindingPoint(0, 0);
        }
 private void ObserveNode(Node node)
 {
     node.DeletedInNodeCollection += node_DeletedInNodeCollection;
 }