Skip to main content

CacheLength Property

Gets or sets the CacheLength.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public double CacheLength { get; set; }

Property Value

Double

Remarks

The factor determines how much additional space to maintain above and below the viewport. A value of 0.5 means half the viewport size will be buffered on each side (up-down or left-right) This uses more memory as more UI elements are realized, but greatly reduces the number of Measure-Arrange cycles which can cause heavy GC pressure depending on the complexity of the item layouts.

See Also

Reference

VirtualizingStackPanel Class
Avalonia.Controls Namespace