Skip to content

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.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Common.Contracts.dll
NuGet Package: Eremex.Common.Contracts

Declaration

public IAppearanceOption SelectedDensity { get; set; }

Property Value

type description
IAppearanceOption One of the entries of Densities, or null when the theme has no densities.

See Also

Used in articles