Table of Contents

Class ButtonEventArgs

Namespace
GHIElectronics.Endpoint.UI.Input
Assembly
GHIElectronics.Endpoint.UI.dll

The ButtonEventArgs class contains information about button states.

public class ButtonEventArgs : InputEventArgs
Inheritance
ButtonEventArgs
Inherited Members

Constructors

ButtonEventArgs(ButtonDevice, PresentationSource, DateTime, HardwareButton)

Constructs an instance of the ButtonEventArgs class.

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

Parameters

buttonDevice ButtonDevice

The button device associated with this event.

inputSource PresentationSource
timestamp DateTime

The time when the input occured. (machine time)

button HardwareButton

The button referenced by the event.

Fields

Button

The Button referenced by the event.

public readonly HardwareButton Button

Field Value

HardwareButton

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