CacheLength Property
Gets or sets the CacheLength.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public double CacheLength { get; set; }
Public Property CacheLength As Double
Get
Set
member CacheLength : float with get, set
Property Value
DoubleRemarks
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.