ScrollBar class

Applies to Windows and Windows Phone

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

Inheritance

Object
  DependencyObject
    UIElement
      FrameworkElement
        Control
          RangeBase
            ScrollBar

Syntax


Public NotInheritable Class ScrollBar
    Inherits RangeBase


<ScrollBar .../>

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The ScrollBar class has these types of members:

Constructors

The ScrollBar class has these constructors.

ConstructorDescription
ScrollBar

 

Events

The ScrollBar class has these events.

EventDescription
DataContextChanged (Inherited from FrameworkElement)
DoubleTapped (Inherited from UIElement)
DragEnter (Inherited from UIElement)
DragLeave (Inherited from UIElement)
DragOver (Inherited from UIElement)
Drop (Inherited from UIElement)
GotFocus (Inherited from UIElement)
Holding (Inherited from UIElement)
IsEnabledChanged (Inherited from Control)
KeyDown (Inherited from UIElement)
KeyUp (Inherited from UIElement)
LayoutUpdated (Inherited from FrameworkElement)
Loaded (Inherited from FrameworkElement)
LostFocus (Inherited from UIElement)
ManipulationCompleted (Inherited from UIElement)
ManipulationDelta (Inherited from UIElement)
ManipulationInertiaStarting (Inherited from UIElement)
ManipulationStarted (Inherited from UIElement)
ManipulationStarting (Inherited from UIElement)
PointerCanceled (Inherited from UIElement)
PointerCaptureLost (Inherited from UIElement)
PointerEntered (Inherited from UIElement)
PointerExited (Inherited from UIElement)
PointerMoved (Inherited from UIElement)
PointerPressed (Inherited from UIElement)
PointerReleased (Inherited from UIElement)
PointerWheelChanged (Inherited from UIElement)
RightTapped (Inherited from UIElement)
Scroll
SizeChanged (Inherited from FrameworkElement)
Tapped (Inherited from UIElement)
Unloaded (Inherited from FrameworkElement)
ValueChanged (Inherited from RangeBase)

 

Methods

The ScrollBar class has these methods. It also inherits methods from the Object class.

MethodDescription
AddHandler (Inherited from UIElement)
ApplyTemplate (Inherited from Control)
Arrange (Inherited from UIElement)
ArrangeOverride (Inherited from FrameworkElement)
CancelDirectManipulations (Inherited from UIElement)
CapturePointer (Inherited from UIElement)
ClearValue (Inherited from DependencyObject)
FindName (Inherited from FrameworkElement)
FindSubElementsForTouchTargeting (Inherited from UIElement)
Focus (Inherited from Control)
GetAnimationBaseValue (Inherited from DependencyObject)
GetBindingExpression (Inherited from FrameworkElement)
GetTemplateChild (Inherited from Control)
GetValue (Inherited from DependencyObject)
GoToElementStateCore (Inherited from FrameworkElement)
InvalidateArrange (Inherited from UIElement)
InvalidateMeasure (Inherited from UIElement)
Measure (Inherited from UIElement)
MeasureOverride (Inherited from FrameworkElement)
OnApplyTemplate (Inherited from FrameworkElement)
OnCreateAutomationPeer (Inherited from UIElement)
OnDisconnectVisualChildren (Inherited from UIElement)
OnDoubleTapped (Inherited from Control)
OnDragEnter (Inherited from Control)
OnDragLeave (Inherited from Control)
OnDragOver (Inherited from Control)
OnDrop (Inherited from Control)
OnGotFocus (Inherited from Control)
OnHolding (Inherited from Control)
OnKeyDown (Inherited from Control)
OnKeyUp (Inherited from Control)
OnLostFocus (Inherited from Control)
OnManipulationCompleted (Inherited from Control)
OnManipulationDelta (Inherited from Control)
OnManipulationInertiaStarting (Inherited from Control)
OnManipulationStarted (Inherited from Control)
OnManipulationStarting (Inherited from Control)
OnMaximumChanged (Inherited from RangeBase)
OnMinimumChanged (Inherited from RangeBase)
OnPointerCanceled (Inherited from Control)
OnPointerCaptureLost (Inherited from Control)
OnPointerEntered (Inherited from Control)
OnPointerExited (Inherited from Control)
OnPointerMoved (Inherited from Control)
OnPointerPressed (Inherited from Control)
OnPointerReleased (Inherited from Control)
OnPointerWheelChanged (Inherited from Control)
OnRightTapped (Inherited from Control)
OnTapped (Inherited from Control)
OnValueChanged (Inherited from RangeBase)
ReadLocalValue (Inherited from DependencyObject)
ReleasePointerCapture (Inherited from UIElement)
ReleasePointerCaptures (Inherited from UIElement)
RemoveHandler (Inherited from UIElement)
SetBinding (Inherited from FrameworkElement)
SetValue (Inherited from DependencyObject)
TransformToVisual (Inherited from UIElement)
UpdateLayout (Inherited from UIElement)

 

Properties

The ScrollBar class has these properties.

PropertyAccess typeDescription

ActualHeight

Read-only (Inherited from FrameworkElement)

ActualWidth

Read-only (Inherited from FrameworkElement)

AllowDrop

Read/write (Inherited from UIElement)

Background

Read/write (Inherited from Control)

BaseUri

Read-only (Inherited from FrameworkElement)

BorderBrush

Read/write (Inherited from Control)

BorderThickness

Read/write (Inherited from Control)

CacheMode

Read/write (Inherited from UIElement)

CharacterSpacing

Read/write (Inherited from Control)

Clip

Read/write (Inherited from UIElement)

CompositeMode

Read/write (Inherited from UIElement)

DataContext

Read/write (Inherited from FrameworkElement)

DefaultStyleKey

Read/write (Inherited from Control)

DesiredSize

Read-only (Inherited from UIElement)

Dispatcher

Read-only (Inherited from DependencyObject)

FlowDirection

Read/write (Inherited from FrameworkElement)

FocusState

Read-only (Inherited from Control)

FontFamily

Read/write (Inherited from Control)

FontSize

Read/write (Inherited from Control)

FontStretch

Read/write (Inherited from Control)

FontStyle

Read/write (Inherited from Control)

FontWeight

Read/write (Inherited from Control)

Foreground

Read/write (Inherited from Control)

Height

Read/write (Inherited from FrameworkElement)

HorizontalAlignment

Read/write (Inherited from FrameworkElement)

HorizontalContentAlignment

Read/write (Inherited from Control)

IndicatorMode

Read/write

IndicatorModeProperty

Read-only

IsDoubleTapEnabled

Read/write (Inherited from UIElement)

IsEnabled

Read/write (Inherited from Control)

IsHitTestVisible

Read/write (Inherited from UIElement)

IsHoldingEnabled

Read/write (Inherited from UIElement)

IsRightTapEnabled

Read/write (Inherited from UIElement)

IsTabStop

Read/write (Inherited from Control)

IsTapEnabled

Read/write (Inherited from UIElement)

Language

Read/write (Inherited from FrameworkElement)

LargeChange

Read/write (Inherited from RangeBase)

ManipulationMode

Read/write (Inherited from UIElement)

Margin

Read/write (Inherited from FrameworkElement)

MaxHeight

Read/write (Inherited from FrameworkElement)

Maximum

Read/write (Inherited from RangeBase)

MaxWidth

Read/write (Inherited from FrameworkElement)

MinHeight

Read/write (Inherited from FrameworkElement)

Minimum

Read/write (Inherited from RangeBase)

MinWidth

Read/write (Inherited from FrameworkElement)

Name

Read/write (Inherited from FrameworkElement)

Opacity

Read/write (Inherited from UIElement)

Orientation

Read/write

OrientationProperty

Read-only

Padding

Read/write (Inherited from Control)

Parent

Read-only (Inherited from FrameworkElement)

PointerCaptures

Read-only (Inherited from UIElement)

Projection

Read/write (Inherited from UIElement)

RenderSize

Read-only (Inherited from UIElement)

RenderTransform

Read/write (Inherited from UIElement)

RenderTransformOrigin

Read/write (Inherited from UIElement)

RequestedTheme

Read/write (Inherited from FrameworkElement)

Resources

Read/write (Inherited from FrameworkElement)

SmallChange

Read/write (Inherited from RangeBase)

Style

Read/write (Inherited from FrameworkElement)

TabIndex

Read/write (Inherited from Control)

TabNavigation

Read/write (Inherited from Control)

Tag

Read/write (Inherited from FrameworkElement)

Template

Read/write (Inherited from Control)

Transitions

Read/write (Inherited from UIElement)

Triggers

Read-only (Inherited from FrameworkElement)

UseLayoutRounding

Read/write (Inherited from UIElement)

Value

Read/write (Inherited from RangeBase)

VerticalAlignment

Read/write (Inherited from FrameworkElement)

VerticalContentAlignment

Read/write (Inherited from Control)

ViewportSize

Read/write

ViewportSizeProperty

Read-only

Visibility

Read/write (Inherited from UIElement)

Width

Read/write (Inherited from FrameworkElement)

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.winmd

See also

RangeBase

 

 

Show:
© 2014 Microsoft