Table of Contents

Class ButtonEventArgs

Namespace
nanoFramework.UI.Input
Assembly
nanoFramework.Graphics.dll

The ButtonEventArgs class contains information about button states.

public class ButtonEventArgs : InputEventArgs
Inheritance
ButtonEventArgs
Inherited Members
Extension Methods

Constructors

ButtonEventArgs(ButtonDevice, PresentationSource, DateTime, Button)

Constructs an instance of the ButtonEventArgs class.

public ButtonEventArgs(ButtonDevice buttonDevice, PresentationSource inputSource, DateTime timestamp, Button button)

Parameters

buttonDevice ButtonDevice

The button device associated with this event.

inputSource PresentationSource

Presentation Source

timestamp DateTime

The time when the input occured. (machine time)

button Button

The button referenced by the event.

Fields

Button

The Button referenced by the event.

public readonly Button Button

Field Value

Button

InputSource

The source for this button

public readonly PresentationSource InputSource

Field Value

PresentationSource

Properties

ButtonState

The state of the button referenced by the event.

public ButtonState ButtonState { get; }

Property Value

ButtonState

IsRepeat

Whether the button pressed is a repeated button or not.

public bool IsRepeat { get; }

Property Value

bool