Ejemplo n.º 1
0
        protected override HitTestResult HitTestCore(PointHitTestParameters hitTestParameters)
        {
            if (ParentAtom.Element is Element)
            {
                if (HullGeometry.FillContains(hitTestParameters.HitPoint))
                {
                    return(new PointHitTestResult(this, hitTestParameters.HitPoint));
                }
            }

            return(null);
        }
Ejemplo n.º 2
0
        protected override HitTestResult HitTestCore(PointHitTestParameters hitTestParameters)
        {
            Pen _widepen = new Pen(Brushes.Black, BondThickness);

            if (ParentAtom.Element is Element e)
            {
                if (HullGeometry.FillContains(hitTestParameters.HitPoint))
                {
                    return(new PointHitTestResult(this, hitTestParameters.HitPoint));
                }
            }

            return(null);
        }