static ConnectionPoint ConnectionPointHitTest(UIElement element, Point hitPoint)
        {
            FreeFormPanel          panel            = VisualTreeUtils.FindVisualAncestor <FreeFormPanel>(element);
            List <ConnectionPoint> connectionPoints = StateContainerEditor.GetConnectionPoints(element);

            return(FreeFormPanel.ConnectionPointHitTest(hitPoint, connectionPoints, panel));
        }
        ConnectionPoint ConnectionPointHitTest(UIElement element, Point hitPoint)
        {
            List <ConnectionPoint> connectionPoints        = new List <ConnectionPoint>();
            List <ConnectionPoint> defaultConnectionPoints = FlowchartDesigner.GetConnectionPoints(element);

            connectionPoints.InsertRange(0, defaultConnectionPoints);
            connectionPoints.Add(FlowchartDesigner.GetTrueConnectionPoint(element));
            connectionPoints.Add(FlowchartDesigner.GetFalseConnectionPoint(element));
            return(FreeFormPanel.ConnectionPointHitTest(hitPoint, connectionPoints, this.panel));
        }