ScrollViewportWidget
ClassShows a vertical window onto taller content, like CSS overflow: scroll without the scrollbar. The content is measured with unbounded height, so the viewport grows with its content until its parent limits it.
Namespace:
RazorConsole.Core.LayoutAssembly:
RazorConsole.CoreDefinition
public sealed class ScrollViewportWidget : WidgetConstructors
1| Name | Type | Description |
|---|---|---|
ScrollViewportWidget(string, Widget, int, string?, IReadOnlyDictionary<string, string?>?, int)() | Constructor | — |
Properties
7| Name | Type | Description |
|---|---|---|
Appearance | ||
ContentHeight | Int32 | Gets the height of the content measured with unbounded height. |
ViewportHeight | Int32 | Gets the height of the visible window after the last arrange. |
Other | ||
Child | Widget | — |
MaxTop | Int32 | Gets the largest valid Top; known in the same pass that arranges the content. |
RequestedTop | Int32 | Gets the offset asked for by the caller, before clamping. Ignored when ScrollId is set. |
ScrollId | String | Gets the id under which engine-owned scroll state is kept, or null for a fixed offset. |
Top | Int32 | Gets the offset actually applied by the last arrange, clamped to [0, MaxTop]. |
Methods
3| Name | Type | Description |
|---|---|---|
ArrangeCore(LayoutContext, LayoutRect)() | Method | — |
MeasureCore(LayoutContext, BoxConstraints)() | LayoutSize | — |
PaintCore(PaintContext)() | Method | — |