void OnRowAdded(object sender, CollectionItemEventArgs <DynamicListRow> e) { e.Item.HeightChanged += RowHeightChanged; e.Item.ItemChanged += RowItemChanged; if (Visible && Parent != null) { e.Item.NotifyListVisibilityChange(this, true); } }
void OnRowRemoved(object sender, CollectionItemEventArgs <DynamicListRow> e) { e.Item.HeightChanged -= RowHeightChanged; e.Item.ItemChanged -= RowItemChanged; if (Visible) { e.Item.NotifyListVisibilityChange(this, false); } }
void OnColumnRemoved(object sender, CollectionItemEventArgs <DynamicListColumn> e) { e.Item.MinimumWidthChanged -= ColumnMinimumWidthChanged; e.Item.WidthChanged -= ColumnWidthChanged; RecalculateColumnWidths(); }