Skip to content

ScrollBar class

A scrollbar control used to represent and change a scroll offset.

Guide: C# Markup reference: Content

public sealed class ScrollBar : RangeBase
name description
ScrollBar() Initializes a new instance of the ScrollBar class.
Orientation { get; set; } Gets or sets the scroll direction (vertical or horizontal).
RenderOpacity { get; set; } Gets or sets the multiplier on the rendered thumb alpha (0..1); layout and hit testing are unaffected.
ViewportSize { get; set; } Gets or sets the viewport size in DIPs, which sizes the thumb relative to the scroll range.
static readonly OrientationProperty
const PART_TRACK The optional track part of a template. The control pushes its range, value, viewport and orientation into it, pages on a press in its regions and maps its thumb’s drags to the value.
static readonly ViewportSizeProperty