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

float

DefaultEstimatedCellHeight

public const float DefaultEstimatedCellHeight = 32

Field Value

float

ExtentCorrectionTolerance

public const float ExtentCorrectionTolerance = 0.5

Field Value

float

Properties

CellHeight

public float CellHeight { get; set; }

Property Value

float

CellWidth

public float CellWidth { get; set; }

Property Value

float

ColumnCount

public int ColumnCount { get; }

Property Value

int

ColumnGap

public float ColumnGap { get; set; }

Property Value

float

EstimatedCellHeight

public float EstimatedCellHeight { get; set; }

Property Value

float

OverscanRows

public int OverscanRows { get; set; }

Property Value

int

RowGap

public float RowGap { get; set; }

Property Value

float

Methods

ArrangeChildren()

protected override void ArrangeChildren()

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2

OnGeneratorChanged(ItemGeneratorChangedEventArgs)

protected override void OnGeneratorChanged(ItemGeneratorChangedEventArgs args)

Parameters

args ItemGeneratorChangedEventArgs

OnGeneratorReset()

protected override void OnGeneratorReset()

TryGetIndexBounds(int, out Rectangle)

public override bool TryGetIndexBounds(int index, out Rectangle bounds)

Parameters

index int
bounds Rectangle

Returns

bool