public override bool HitTest(Point point) { // if the control is not enabled, hit test should ignore the control graphics (which is everything except the decorated graphic) return(Enabled ? base.HitTest(point) : DecoratedGraphic.HitTest(point)); }
public override PointF GetClosestPoint(PointF point) { // if the control is not enabled, closest point should ignore the control graphics (which is everything except the decorated graphic) return(Enabled ? base.GetClosestPoint(point) : DecoratedGraphic.GetClosestPoint(point)); }