Example #1
0
 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));
 }
Example #2
0
 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));
 }