NavigableElement.class 属性

定义

获取或设置元素的样式类。

public:
 property System::Collections::Generic::IList<System::String ^> ^ class { System::Collections::Generic::IList<System::String ^> ^ get(); void set(System::Collections::Generic::IList<System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ListStringTypeConverter))]
public System.Collections.Generic.IList<string> class { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ListStringTypeConverter))>]
member this.class : System.Collections.Generic.IList<string> with get, set
Public Property class As IList(Of String)

属性值

属性

注解

等价到 StyleClass

样式类支持将多个样式应用于控件,而无需采用样式继承。

适用于