Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value.
<TemplatePartAttribute(Name := "VerticalRoot", Type := GetType(FrameworkElement))> _ <TemplatePartAttribute(Name := "HorizontalRoot", Type := GetType(FrameworkElement))> _ <TemplatePartAttribute(Name := "HorizontalLargeIncrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "HorizontalLargeDecrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "HorizontalSmallDecrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "HorizontalSmallIncrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "HorizontalThumb", Type := GetType(Thumb))> _ <TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <TemplatePartAttribute(Name := "VerticalLargeIncrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "VerticalLargeDecrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "VerticalSmallIncrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "VerticalSmallDecrease", Type := GetType(RepeatButton))> _ <TemplatePartAttribute(Name := "VerticalThumb", Type := GetType(Thumb))> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _ Public NotInheritable Class ScrollBar _ Inherits RangeBase
[TemplatePartAttribute(Name = "VerticalRoot", Type = typeof(FrameworkElement))] [TemplatePartAttribute(Name = "HorizontalRoot", Type = typeof(FrameworkElement))] [TemplatePartAttribute(Name = "HorizontalLargeIncrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "HorizontalLargeDecrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "HorizontalSmallDecrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "HorizontalSmallIncrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "HorizontalThumb", Type = typeof(Thumb))] [TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [TemplatePartAttribute(Name = "VerticalLargeIncrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "VerticalLargeDecrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "VerticalSmallIncrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "VerticalSmallDecrease", Type = typeof(RepeatButton))] [TemplatePartAttribute(Name = "VerticalThumb", Type = typeof(Thumb))] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")] public sealed class ScrollBar : RangeBase
<ScrollBar .../>
The ScrollBar type exposes the following members.
The ScrollBar control consists of a Thumb control and two RepeatButton controls. You can increase and decrease the RangeBase..::.Value property of the ScrollBar control by pressing the RepeatButton controls or by moving the Thumb. The default range of values for the RangeBase..::.Value property is from 0 to 10. The RangeBase..::.Value represents the linear distance of the Thumb between the endpoints of the ScrollBar. You can change the default range of values by setting the RangeBase..::.Minimum and RangeBase..::.Maximum properties. The Orientation property determines whether the ScrollBar is displayed horizontally or vertically.
The scroll track in a ScrollBar is oriented so that values increase from top to bottom for a vertical ScrollBar or from left to right for a horizontal ScrollBar.
For a list of the initial property values for an instance of the ScrollBar class, see the ScrollBar()()() constructor.
To display content inside a box that has scrollbars, use the ScrollViewer control.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.