NavigableElement.StyleClass Property

Definition

Gets or sets the style classes for the element.

C#
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ListStringTypeConverter))]
public System.Collections.Generic.IList<string> StyleClass { get; set; }

Property Value

Attributes

Remarks

Equiavalent to class.

Style classes enable multiple styles to be applied to a control, without resorting to style inheritance.

Applies to

Product Versions
.NET MAUI 8