# HandlerAttribute class

Namespace: [Eto](https://eto.picoe.ca/api/namespace/eto.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[AttributeUsage(AttributeTargets.Class)]
public sealed class HandlerAttribute : Attribute
```

Attribute to specify the interface type to use for the handler of a [Widget](https://eto.picoe.ca/api/type/eto.widget.md)

**Remarks:** Apply this to your widget-derived class to allow it to automatically create your handler.

## Constructors

- [HandlerAttribute](https://eto.picoe.ca/api/type/eto.handlerattribute/ctor.md): Initializes a new instance of the [HandlerAttribute](https://eto.picoe.ca/api/type/eto.handlerattribute.md) class.

## Properties

- [Type](https://eto.picoe.ca/api/type/eto.handlerattribute/type.md): Gets the type of the handler required for the widget
