Overview

A device component is an individual stateful part of a device, such as a button. All devices will be composed of one or more components.

Included Components

Extending Device Components

To add a new device component type inherit from the DeviceComponent base class. Properties should be added to represent any state of the device component. To get the gui to display the device state a component state user control should be created. To allow the user to map this component type to a gesture property a property setter user control should be created.

Sample

public class ButtonDeviceComponent : DeviceComponent
{
    public ButtonDeviceComponent(Device owner)
        : base (owner)
    {

    }

    public ButtonState State { get; set; }
}