# IAppearanceService.SelectedDensity property

The chosen density. Assigning it resizes the controls of the running application at once: paddings, row heights and the like follow the density, the colours do not change.

```csharp
public IAppearanceOption SelectedDensity { get; set; }
```

## Property Value

One of the entries of [`Densities`](./Densities.md), or `null` when the theme has no densities.

## See Also

* interface [IAppearanceOption](../IAppearanceOption.md)
* interface [IAppearanceService](../IAppearanceService.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
