ScrollBar is the abstract base for standalone scroll bars.
Use VScrollBar (vertical) or HScrollBar (horizontal).
Scrollbars are typically used through ScrollViewer, but can be used directly:
new VScrollBar()
.Minimum(0)
.Maximum(100)
.Value(30);
In most apps you should prefer ScrollViewer + IScrollable, because it keeps viewport/extent synchronized and avoids
manual offset math.
When used inside ScrollViewer, scrollbars are automatically bound to the target ScrollModel:
ScrollModel.OffsetX/OffsetY maps to scrollbar value,ScrollModel.ViewportWidth/ViewportHeight maps to thumb size,ScrollModel.ExtentWidth/ExtentHeight maps to range.If you host a scrollbar directly, you are responsible for keeping its range/value consistent with the content.
VScrollBar: HorizontalAlignment = Align.Start, VerticalAlignment = Align.StretchHScrollBar: HorizontalAlignment = Align.Stretch, VerticalAlignment = Align.StartScrollBarStyle controls track/thumb rendering and colors.