Class VirtualizingGridPanel
- Namespace
- Forma
- Assembly
- Forma.dll
Realizes visible rows of fixed-width cells while adapting column count and estimated row heights to the viewport.
public sealed class VirtualizingGridPanel : VirtualizingPanel, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IScrollIndexProvider, IDisposable
- Inheritance
-
VirtualizingGridPanel
- Implements
- Inherited Members
Constructors
VirtualizingGridPanel()
public VirtualizingGridPanel()
Fields
DefaultCellWidth
public const float DefaultCellWidth = 100
Field Value
DefaultEstimatedCellHeight
public const float DefaultEstimatedCellHeight = 32
Field Value
ExtentCorrectionTolerance
public const float ExtentCorrectionTolerance = 0.5
Field Value
Properties
CellHeight
public float CellHeight { get; set; }
Property Value
CellWidth
public float CellWidth { get; set; }
Property Value
ColumnCount
public int ColumnCount { get; }
Property Value
ColumnGap
public float ColumnGap { get; set; }
Property Value
EstimatedCellHeight
public float EstimatedCellHeight { get; set; }
Property Value
OverscanRows
public int OverscanRows { get; set; }
Property Value
RowGap
public float RowGap { get; set; }
Property Value
Methods
ArrangeChildren()
protected override void ArrangeChildren()
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
OnGeneratorChanged(ItemGeneratorChangedEventArgs)
protected override void OnGeneratorChanged(ItemGeneratorChangedEventArgs args)
Parameters
OnGeneratorReset()
protected override void OnGeneratorReset()
TryGetIndexBounds(int, out Rectangle)
public override bool TryGetIndexBounds(int index, out Rectangle bounds)
Parameters
indexintboundsRectangle