Show / Hide Table of Contents

    Class HardwareKeyListener

    Hardware key listener: Configures what key stroke to listen for and what to do when it's heard.

    Inheritance
    Object
    BindableObject
    HardwareKeyListener
    Implements
    INotifyPropertyChanged
    Inherited Members
    BindableObject.BindingContextProperty
    BindableObject.ClearValue(BindableProperty)
    BindableObject.ClearValue(BindablePropertyKey)
    BindableObject.GetValue(BindableProperty)
    BindableObject.IsSet(BindableProperty)
    BindableObject.RemoveBinding(BindableProperty)
    BindableObject.SetBinding(BindableProperty, BindingBase)
    BindableObject.ApplyBindings()
    BindableObject.OnBindingContextChanged()
    BindableObject.OnPropertyChanged(String)
    BindableObject.OnPropertyChanging(String)
    BindableObject.UnapplyBindings()
    BindableObject.SetValue(BindableProperty, Object)
    BindableObject.SetValue(BindablePropertyKey, Object)
    BindableObject.CoerceValue(BindableProperty)
    BindableObject.CoerceValue(BindablePropertyKey)
    BindableObject.Dispatcher
    BindableObject.BindingContext
    BindableObject.PropertyChanged
    BindableObject.PropertyChanging
    BindableObject.BindingContextChanged
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Forms9Patch
    Assembly: Forms9Patch.dll
    Syntax
    public class HardwareKeyListener : BindableObject, INotifyPropertyChanged, IDynamicResourceHandler

    Constructors

    HardwareKeyListener(HardwareKey, EventHandler<HardwareKeyEventArgs>)

    Initializes a new instance of the HardwareKeyListener class.

    Declaration
    public HardwareKeyListener(HardwareKey hardwareKey, EventHandler<HardwareKeyEventArgs> onPressed = null)
    Parameters
    Type Name Description
    HardwareKey hardwareKey

    Hardware key.

    EventHandler<HardwareKeyEventArgs> onPressed

    On pressed.

    Fields

    CommandParameterProperty

    The CommandParameter backing store

    Declaration
    public static readonly BindableProperty CommandParameterProperty
    Field Value
    Type Description
    BindableProperty

    CommandProperty

    Backing store for the Command property

    Declaration
    public static readonly BindableProperty CommandProperty
    Field Value
    Type Description
    BindableProperty

    HardwareKeyProperty

    Backing store for the HardwareKey property.

    Declaration
    public static readonly BindableProperty HardwareKeyProperty
    Field Value
    Type Description
    BindableProperty

    Pressed

    The event that is triggered when this hardware key is pressed.

    Declaration
    public EventHandler<HardwareKeyEventArgs> Pressed
    Field Value
    Type Description
    EventHandler<HardwareKeyEventArgs>

    Properties

    Command

    Gets or sets the command to be invoked when the HardwareKey is pressed

    Declaration
    public ICommand Command { get; set; }
    Property Value
    Type Description
    ICommand

    The command.

    CommandParameter

    Gets or sets the command parameter sent with the command that is invoked when the key is pressed.

    Declaration
    public object CommandParameter { get; set; }
    Property Value
    Type Description
    Object

    The command parameter.

    HardwareKey

    Gets or sets the hardware key for which to be listened.

    Declaration
    public HardwareKey HardwareKey { get; set; }
    Property Value
    Type Description
    HardwareKey

    The hardware key.

    Methods

    ToString()

    Returns a String that represents the current HardwareKeyListener.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A String that represents the current HardwareKeyListener.

    Overrides
    Object.ToString()

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    DebugExtensions.AddToCensus(Object)
    DebugExtensions.RemoveFromCensus(Object)
    ReflectionExtensions.GetProperties(Object)
    ReflectionExtensions.GetProperty(Object, String)
    ReflectionExtensions.PropertyNames(Object)
    ReflectionExtensions.PropertyExists(Object, String)
    ReflectionExtensions.HasProperty(Object, String)
    ReflectionExtensions.GetPropertyValue(Object, String)
    ReflectionExtensions.SetPropertyValue(Object, String, Object)
    ReflectionExtensions.GetFieldValue(Object, String)
    ReflectionExtensions.SetFieldValue(Object, String, Object)
    ReflectionExtensions.CallMethod(Object, String, Object[])
    Back to top Copyright © 2018 42nd Parallel