次の方法で共有


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.

スタイル クラスを使用すると、スタイルの継承を使用せずに、複数のスタイルをコントロールに適用できます。

適用対象