GroupStyle.ContainerStyle 屬性

定義

取得或設定套用至為每個項目所產生之 GroupItem 的樣式。

public:
 property System::Windows::Style ^ ContainerStyle { System::Windows::Style ^ get(); void set(System::Windows::Style ^ value); };
public System.Windows.Style ContainerStyle { get; set; }
member this.ContainerStyle : System.Windows.Style with get, set
Public Property ContainerStyle As Style

屬性值

套用至為每個項目所產生之 GroupItem 的樣式。 預設為 null

備註

這個屬性是罕見的情況,在屬性元素語法中建立 Style 內嵌,而不是建立樣式作為資源,是合理的替代方法。

XAML Attribute Usage

<object ContainerStyle="{ResourceExtension StyleResourceKey}"/>  

XAML 值

ResourceExtension
下列其中一項: StaticResource 、 或 DynamicResource 。 請參閱 XAML 資源

StyleResourceKey
識別所要求樣式的索引鍵。 索引鍵是指 中的 ResourceDictionary 現有資源。

適用於

另請參閱