SpinEventArgs Class
Definition
Provides data for the Spinner.Spin event.
public class SpinEventArgs
Constructors
| Name | Description |
|---|---|
| SpinEventArgs (4 overloads) | Initializes a new instance of the SpinEventArgs class. |
SpinEventArgs overloads
SpinEventArgs Constructor
Initializes a new instance of the SpinEventArgs class.
public SpinEventArgs(Avalonia.Controls.SpinDirection direction)
Parameters
direction Avalonia.Controls.SpinDirection
Spin direction.
SpinEventArgs Constructor
public SpinEventArgs(Avalonia.Controls.SpinDirection direction, bool usingMouseWheel)
Parameters
direction Avalonia.Controls.SpinDirection
usingMouseWheel bool
SpinEventArgs Constructor
public SpinEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent, Avalonia.Controls.SpinDirection direction)
Parameters
routedEvent Avalonia.Interactivity.RoutedEvent
direction Avalonia.Controls.SpinDirection
SpinEventArgs Constructor
public SpinEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent, Avalonia.Controls.SpinDirection direction, bool usingMouseWheel)
Parameters
routedEvent Avalonia.Interactivity.RoutedEvent
direction Avalonia.Controls.SpinDirection
usingMouseWheel bool
Properties
| Name | Description |
|---|---|
| Direction | Gets the SpinDirection for the spin that has been initiated by the end-user. |
| UsingMouseWheel | Get or set whether the spin event originated from a mouse wheel event. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets or sets the source object that raised the routed event. Inherited from RoutedEventArgs. |
Direction Property
Gets the SpinDirection for the spin that has been initiated by the end-user.
public Avalonia.Controls.SpinDirection Direction { get; set; }
UsingMouseWheel Property
Get or set whether the spin event originated from a mouse wheel event.
public bool UsingMouseWheel { get; set; }