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
<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()

Initializes a new instance of the ScrollBar class.

public ScrollBar()public ScrollBar()Public Sub New()
Attributes

Properties

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
<ScrollBar IndicatorMode="scrollingIndicatorModeMemberName"/>
Value
ScrollingIndicatorMode ScrollingIndicatorMode ScrollingIndicatorMode

A value of the enumeration. The default is None.

Attributes

Remarks

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

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
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the IndicatorMode dependency property.

Attributes

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
<ScrollBar Orientation="Horizontal"/>
-or-
<ScrollBar Orientation="Vertical"/>
Value
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.

Attributes

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
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the Orientation dependency property.

Attributes

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
<ScrollBar ViewportSize="double"/>
Value
double double double

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

Attributes

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
Value
DependencyProperty DependencyProperty DependencyProperty

The identifier for the ViewportSize dependency property.

Attributes

Events

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
<ScrollBar Scroll="eventhandler"/>
Attributes