# StyleWidgetHandler<TWidget> delegate

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

```cs
public delegate StyleWidgetHandler<TWidget>
```

Delegate to handle styling a widget

**Remarks:** This allows you to add additional logic or set properties on the widget based on the styles set on the widget.

**Type parameters:**

- `TWidget` (where Widget): Type of widget to style

**Signature:**

```cs
void StyleWidgetHandler<TWidget>(TWidget widget)
```

**Parameters:**

- `widget` (`TWidget`): Widget instance that is being styled
