Example #1
0
 private void HandleRowHeightChanged(object sender, RowHeightChangedEventArgs e)
 {
     if (JetListViewNodeCollection.IsNodeVisible(e.Row))
     {
         SetScrollRange(_scrollRange - e.OldHeight + e.NewHeight);
         InvalidateBelow(0);
     }
 }
Example #2
0
 private void HandlePreviewRowHeightChanged(object sender, RowHeightChangedEventArgs e)
 {
     if (RowHeightChanged != null)
     {
         int baseHeight = _baseRowRenderer.GetRowHeight(e.Row);
         RowHeightChanged(this, new RowHeightChangedEventArgs(e.Row, e.OldHeight + baseHeight,
                                                              e.NewHeight + baseHeight));
     }
 }