Class Slider
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()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class Slider : RangeBase
Constructors
| Improve this Doc View SourceSlider()
Initializes a new instance of the Slider class.
Declaration
public Slider()
Fields
| Improve this Doc View SourceOrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ViewportSizeProperty
Identifies the ViewportSize dependency property.
Declaration
public static readonly DependencyProperty ViewportSizeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceOrientation
Gets or sets a value that indicates whether the Slider 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
Type | Description |
---|---|
Orientation |
ViewportSize
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 SourceOnApplyTemplate()
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnMaximumChanged(Double, Double)
Declaration
protected override void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMaximum | |
System.Double | newMaximum |
Overrides
| Improve this Doc View SourceOnMinimumChanged(Double, Double)
Declaration
protected override void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMinimum | |
System.Double | newMinimum |
Overrides
| Improve this Doc View SourceOnValueChanged(Double, Double)
Declaration
protected override void OnValueChanged(double oldValue, double newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldValue | |
System.Double | newValue |
Overrides
Events
| Improve this Doc View SourceScroll
Occurs one or more times as content scrolls in a Slider when the user moves the Thumb by using the mouse.
Declaration
public event ScrollEventHandler Scroll
Event Type
Type | Description |
---|---|
ScrollEventHandler |