共用方式為


NavigableElement.StyleClass 屬性

定義

取得或設定 項目的樣式類別。

public:
 property System::Collections::Generic::IList<System::String ^> ^ StyleClass { 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> StyleClass { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.ListStringTypeConverter))>]
member this.StyleClass : System.Collections.Generic.IList<string> with get, set
Public Property StyleClass As IList(Of String)

屬性值

屬性

備註

等價與 class

樣式類別可讓多個樣式套用至控件,而不需採用樣式繼承。

適用於