Classes Property
Gets or sets the styled element's classes.
Definition
Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public Classes Classes { get; }
Public ReadOnly Property Classes As Classes
Get
member Classes : Classes with get
Property Value
ClassesRemarks
Classes can be used to apply user-defined styling to styled elements, or to allow styled elements that share a common purpose to be easily selected.
Even though this property can be set, the setter is only intended for use in object initializers. Assigning to this property does not change the underlying collection, it simply clears the existing collection and adds the contents of the assigned collection.