Skip to content
Version 2.32.0
↓ Get the launcher

ScrollElement record

Vertical scroll viewport wrapping a child subtree + a themed thin scrollbar. By default the viewport uses Height only as a PREFERRED baseline and still GROWS to absorb slack height in a resizable window (flexibleHeight 1); set FixedHeight to pin it instead.

public record ScrollElement : IEquatable<HudElement>
name description
ScrollElement(…) Vertical scroll viewport wrapping a child subtree + a themed thin scrollbar. By default the viewport uses Height only as a PREFERRED baseline and still GROWS to absorb slack height in a resizable window (flexibleHeight 1); set FixedHeight to pin it instead.
Child { get; set; }
FixedHeight { get; set; } When true, the viewport is pinned to Height (min==preferred, flexibleHeight 0) so it does NOT absorb slack height in a resizable window. Default false preserves the existing behaviour (flexibleHeight 1 → the scroll grows to fill leftover vertical space). An init property (NOT a primary-ctor parameter) so the record stays source AND binary compatible with already-compiled plugins — see WindowBuilder-Patterns.md “Binary compatibility rules for HudElement records”.
Height { get; set; }