Skip to main content

SpinEventArgs Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia
Source:Spinner.cs

Provides data for the Spinner.Spin event.

public class SpinEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> SpinEventArgs

Constructors

NameDescription
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

NameDescription
DirectionGets the SpinDirection for the spin that has been initiated by the end-user.
UsingMouseWheelGet or set whether the spin event originated from a mouse wheel event.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets 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; }