Class ScrollBar
Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value.
Inheritance
System.Object
ScrollBar
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
public sealed class ScrollBar : RangeBase
Constructors
|
Improve this Doc
View Source
Initializes a new instance of the ScrollBar class.
Declaration
Fields
|
Improve this Doc
View Source
Declaration
public static readonly DependencyProperty DebounceProperty
Field Value
|
Improve this Doc
View Source
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
|
Improve this Doc
View Source
Identifies the ViewportSize dependency property.
Declaration
public static readonly DependencyProperty ViewportSizeProperty
Field Value
Properties
|
Improve this Doc
View Source
Declaration
public TimeSpan Debounce { get; set; }
Property Value
Type |
Description |
System.TimeSpan |
|
|
Improve this Doc
View Source
Gets or sets a value that indicates 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.
Declaration
public Orientation Orientation { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or sets the amount of the scrollable content that is currently visible. The default is 0.
Declaration
public double ViewportSize { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Declaration
public static TimeSpan GetDebounce(FrameworkElement fe)
Parameters
Returns
Type |
Description |
System.TimeSpan |
|
|
Improve this Doc
View Source
Declaration
public override void OnApplyTemplate()
Overrides
|
Improve this Doc
View Source
Declaration
protected override void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters
Type |
Name |
Description |
System.Double |
oldMaximum |
|
System.Double |
newMaximum |
|
Overrides
|
Improve this Doc
View Source
Declaration
protected override void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters
Type |
Name |
Description |
System.Double |
oldMinimum |
|
System.Double |
newMinimum |
|
Overrides
|
Improve this Doc
View Source
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs eventArgs)
Parameters
Overrides
|
Improve this Doc
View Source
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs eventArgs)
Parameters
Overrides
|
Improve this Doc
View Source
Declaration
protected override void OnValueChanged(double oldValue, double newValue)
Parameters
Type |
Name |
Description |
System.Double |
oldValue |
|
System.Double |
newValue |
|
Overrides
|
Improve this Doc
View Source
Declaration
public static void SetDebounce(FrameworkElement fe, TimeSpan debounce)
Parameters
Events
|
Improve this Doc
View Source
Occurs one or more times as content scrolls in a ScrollBar when the user moves the Thumb by using the mouse.
Declaration
public event ScrollEventHandler Scroll
Event Type
Extension Methods