Scroll​Bar Scroll​Bar Scroll​Bar Scroll​Bar Class

Definition

Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value.

public : sealed class ScrollBar : RangeBase, IScrollBarpublic sealed class ScrollBar : RangeBase, IScrollBarPublic NotInheritable Class ScrollBar Inherits RangeBase Implements IScrollBar// This API is not available in Javascript.
<ScrollBar .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Constructors

ScrollBar() ScrollBar() ScrollBar() ScrollBar()

Initializes a new instance of the ScrollBar class.

public : ScrollBar()public ScrollBar()Public Sub New()// This API is not available in Javascript.

Properties

IndicatorMode IndicatorMode IndicatorMode IndicatorMode

Gets or sets a value that results in different input indicator modes for the ScrollBar.

public : ScrollingIndicatorMode IndicatorMode { get; set; }public ScrollingIndicatorMode IndicatorMode { get; set; }Public ReadWrite Property IndicatorMode As ScrollingIndicatorMode// This API is not available in Javascript.
<ScrollBar IndicatorMode="scrollingIndicatorModeMemberName"/>
Value
ScrollingIndicatorMode ScrollingIndicatorMode ScrollingIndicatorMode ScrollingIndicatorMode

A value of the enumeration. The default is None.

Remarks

The value of this property influences transition animations that are part of the default template for ScrollBar.

IndicatorModeProperty IndicatorModeProperty IndicatorModeProperty IndicatorModeProperty

Identifies the IndicatorMode dependency property.

public : static DependencyProperty IndicatorModeProperty { get; }public static DependencyProperty IndicatorModeProperty { get; }Public Static ReadOnly Property IndicatorModeProperty As DependencyProperty// This API is not available in Javascript.

Orientation Orientation Orientation Orientation

Gets or sets a value that indicates whether the ScrollBar is displayed horizontally or vertically.

public : Orientation Orientation { get; set; }public Orientation Orientation { get; set; }Public ReadWrite Property Orientation As Orientation// This API is not available in Javascript.
<ScrollBar Orientation="Horizontal"/>
-or-
<ScrollBar Orientation="Vertical"/>
Value
Orientation Orientation Orientation Orientation

An Orientation enumeration value that defines whether the ScrollBar is displayed horizontally or vertically. The default is Horizontal. Specific control templates might change this value, which would cause the templated value to be the apparent runtime default.

OrientationProperty OrientationProperty OrientationProperty OrientationProperty

Identifies the Orientation dependency property.

public : static DependencyProperty OrientationProperty { get; }public static DependencyProperty OrientationProperty { get; }Public Static ReadOnly Property OrientationProperty As DependencyProperty// This API is not available in Javascript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Orientation dependency property.

ViewportSize ViewportSize ViewportSize ViewportSize

Gets or sets the amount of the scrollable content that is currently visible.

public : double ViewportSize { get; set; }public double ViewportSize { get; set; }Public ReadWrite Property ViewportSize As double// This API is not available in Javascript.
<ScrollBar ViewportSize="double"/>
Value
double double double double

The amount of the scrollable content that is currently visible. The default is 0.

ViewportSizeProperty ViewportSizeProperty ViewportSizeProperty ViewportSizeProperty

Identifies the ViewportSize dependency property.

public : static DependencyProperty ViewportSizeProperty { get; }public static DependencyProperty ViewportSizeProperty { get; }Public Static ReadOnly Property ViewportSizeProperty As DependencyProperty// This API is not available in Javascript.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the ViewportSize dependency property.

Events

Scroll Scroll Scroll Scroll

Occurs one or more times as content scrolls in a ScrollBar when the user moves the Thumb by using the mouse.

public : event ScrollEventHandler Scrollpublic event ScrollEventHandler ScrollPublic Event Scroll// This API is not available in Javascript.
<ScrollBar Scroll="eventhandler"/>

See Also