Search Results for

    Show / Hide Table of Contents

    Class ButtonEventArgs

    The ButtonEventArgs class contains information about button states.

    Inheritance
    object
    EventArgs
    RoutedEventArgs
    InputEventArgs
    ButtonEventArgs
    Inherited Members
    InputEventArgs.Timestamp
    InputEventArgs.Device
    RoutedEventArgs.OnSetSource(object)
    RoutedEventArgs.RoutedEvent
    RoutedEventArgs.Handled
    RoutedEventArgs.Source
    RoutedEventArgs.OriginalSource
    EventArgs.Empty
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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

    Extension Methods

    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    LogDispatcher.GetCurrentClassLogger(object)
    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX