/// <summary> /// /// </summary> /// <param name="item"></param> protected override void BeforeItemAdd(Component item) { base.BeforeItemAdd(item); if (!(item is BoxComponentBase)) { throw new InvalidOperationException(string.Format("Invalid type of Control ({0}). Only Components which inherit from Ext.Net.BoxComponent can be added to this ({1}) Items Collection.", item.GetType(), this.GetType())); } }