protected virtual void OnInvalidated (InvalidateEventArgs e) { if (NSViewForControl != null) NSViewForControl.SetNeedsDisplayInRect (e.InvalidRect); InvalidateEventHandler eh = (InvalidateEventHandler)(Events[InvalidatedEvent]); if (eh != null) eh (this, e); }