private void Columns_AfterItemRemove(LayoutColumn item) { if (item.Control != null) { this.Items.Remove(item.Control as Component); } }
void Columns_AfterItemAdd(LayoutColumn item) { if (item.Control != null) { this.Items.Add((Component)item.Control); item.Items[0].AdditionalConfig = item; } item.Items.AfterItemAdd += delegate(Component cItem) { this.Items.Add(cItem); cItem.AdditionalConfig = item; }; item.Items.AfterItemRemove += this.AfterItemRemove; }
/// <summary> /// /// </summary> public LayoutColumn.Builder LayoutColumn(LayoutColumn component) { return(new LayoutColumn.Builder(component)); }