private void OnItemLayoutChanged(object sender, EventArgs e) { IDrawable drawable = sender as IDrawable; if (drawable != null) { drawable.CalculatePaths(ClientRectangle); this.Invalidate(drawable); } }