Skip to main content

Styles Property

Gets the styles for the styled element.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Styles Styles { get; }

Property Value

Styles

Implements

IStyleHost.Styles

Remarks

Styles for the entire application are added to the Application.Styles collection, but each styled element may in addition define its own styles which are applied to the styled element itself and its children.

See Also

Reference

StyledElement Class
Avalonia Namespace