# DefaultStyleProvider class

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

```cs
public class DefaultStyleProvider : IStyleProvider
```

The default style provider which supports setting styles from delegates.

## Properties

- [IStyleProvider.Inherit](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/eto-istyleprovider-inherit.md)
- [Inherit](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/inherit.md): Gets or sets a value indicating whether this `DefaultStyleProvider` allows inheriting styles from the parent object.

## Methods

- [Add<T>](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/add.md): Adds a style for a widget
- [Clear](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/clear.md): Clears all styles from this provider
- [IStyleProvider.ApplyCascadingStyle](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/eto-istyleprovider-applycascadingstyle.md)
- [IStyleProvider.ApplyDefault](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/eto-istyleprovider-applydefault.md)
- [IStyleProvider.ApplyStyle](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/eto-istyleprovider-applystyle.md)

## Events

- [StyleWidget](https://eto.picoe.ca/api/type/eto.defaultstyleprovider/stylewidget.md): Event to handle when a widget is being styled
