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