1 write to _itemsBefore
Microsoft.AspNetCore.Components.Web (1)
Virtualization\Virtualize.cs (1)
381_itemsBefore = itemsBefore;
10 references to _itemsBefore
Microsoft.AspNetCore.Components.Web (10)
Virtualization\Virtualize.cs (10)
225builder.AddAttribute(1, "style", GetSpacerStyle(_itemsBefore)); 229var lastItemIndex = Math.Min(_itemsBefore + _visibleItemCapacity, _itemCount); 230var renderIndex = _itemsBefore; 254.Skip(_itemsBefore - _loadedItemsStartIndex) 271_lastRenderedPlaceholderCount = Math.Max(0, lastItemIndex - _itemsBefore - _lastRenderedItemCount); 283var itemsAfter = Math.Max(0, _itemCount - _visibleItemCapacity - _itemsBefore); 308if (itemsBefore == _itemsBefore && itemsBefore > 0) 326if (itemsBefore == _itemsBefore && itemsBefore < _itemCount - visibleItemCapacity) 379if (itemsBefore != _itemsBefore || visibleItemCapacity != _visibleItemCapacity || unusedItemCapacity != _unusedItemCapacity) 413var request = new ItemsProviderRequest(_itemsBefore, _visibleItemCapacity, cancellationToken);