Class Spinner
Base class for controls that represents controls that can spin.
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 abstract class Spinner : Control
Remarks
Spinner abstract class defines and implements common and focused visual state groups. Spinner abstract class defines and implements Spin event and OnSpin method.
Constructors
| Improve this Doc View SourceSpinner()
Initializes a new instance of the Spinner class.
Declaration
protected Spinner()
Fields
| Improve this Doc View SourceValidSpinDirectionProperty
Identifies the ValidSpinDirection dependency property.
Declaration
public static readonly DependencyProperty ValidSpinDirectionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceValidSpinDirection
Gets or sets the spin direction that is currently valid.
Declaration
public ValidSpinDirections ValidSpinDirection { get; set; }
Property Value
Type | Description |
---|---|
ValidSpinDirections |
Methods
| Improve this Doc View SourceOnSpin(SpinEventArgs)
Raises the OnSpin event when spinning is initiated by the end-user.
Declaration
protected virtual void OnSpin(SpinEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
SpinEventArgs | e | Spin event args. |
OnValidSpinDirectionChanged(ValidSpinDirections, ValidSpinDirections)
Called when valid spin direction changed.
Declaration
protected virtual void OnValidSpinDirectionChanged(ValidSpinDirections oldValue, ValidSpinDirections newValue)
Parameters
Type | Name | Description |
---|---|---|
ValidSpinDirections | oldValue | The old value. |
ValidSpinDirections | newValue | The new value. |
Events
| Improve this Doc View SourceSpin
Occurs when spinning is initiated by the end-user.
Declaration
public event EventHandler<SpinEventArgs> Spin
Event Type
Type | Description |
---|---|
System.EventHandler<SpinEventArgs> |