SilverlightMappingToolBasic.NodeRelationshipHelper.GetCenterOfFromNode C# (CSharp) Method

GetCenterOfFromNode() public method

public GetCenterOfFromNode ( ) : Point
return Point
        public Point GetCenterOfFromNode()
        {
            Point result = new Point(0,0);
            if (_fromNode != null)
            {
                double startPositionX = FromNode.NodeSkinWidth / 2;
                double startPositionY = FromNode.NodeSkinHeight / 2;

                startPositionX += (double)FromNode.Parent.GetValue(Canvas.LeftProperty);
                startPositionY += (double)FromNode.Parent.GetValue(Canvas.TopProperty);

                result = new Point(startPositionX, startPositionY);
            }
            return result;
        }
NodeRelationshipHelper