# IStyleProvider interface

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

```cs
public interface IStyleProvider
```

Interface for a style provider

**Remarks:** This can be used to create your own style engine to apply styles to widgets. The [DefaultStyleProvider](https://eto.picoe.ca/api/type/eto.defaultstyleprovider.md) is a good example of how to implement a style provider.

**Derived types:** [DefaultStyleProvider](https://eto.picoe.ca/api/type/eto.defaultstyleprovider.md)

## Properties

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

## Methods

- [ApplyCascadingStyle](https://eto.picoe.ca/api/type/eto.istyleprovider/applycascadingstyle.md): Applies cascading styles to the specified `widget`.
- [ApplyDefault](https://eto.picoe.ca/api/type/eto.istyleprovider/applydefault.md): Applies default styling to the specified widget after creation.
- [ApplyStyle](https://eto.picoe.ca/api/type/eto.istyleprovider/applystyle.md): Applies styles to the specified `widget`
