Class ButtonEventArgs
The ButtonEventArgs class contains information about button states.
Inherited Members
Namespace: nanoFramework.UI.Input
Assembly: nanoFramework.Graphics.dll
Syntax
public class ButtonEventArgs : InputEventArgs
Constructors
ButtonEventArgs(ButtonDevice, PresentationSource, DateTime, Button)
Constructs an instance of the ButtonEventArgs class.
Declaration
public ButtonEventArgs(ButtonDevice buttonDevice, PresentationSource inputSource, DateTime timestamp, Button button)
Parameters
Type | Name | Description |
---|---|---|
ButtonDevice | buttonDevice | The button device associated with this event. |
PresentationSource | inputSource | Presentation Source |
DateTime | timestamp | The time when the input occured. (machine time) |
Button | button | The button referenced by the event. |
Fields
Button
The Button referenced by the event.
Declaration
public readonly Button Button
Field Value
Type | Description |
---|---|
Button |
InputSource
The source for this button
Declaration
public readonly PresentationSource InputSource
Field Value
Type | Description |
---|---|
PresentationSource |
Properties
ButtonState
The state of the button referenced by the event.
Declaration
public ButtonState ButtonState { get; }
Property Value
Type | Description |
---|---|
ButtonState |
IsRepeat
Whether the button pressed is a repeated button or not.
Declaration
public bool IsRepeat { get; }
Property Value
Type | Description |
---|---|
bool |