Share via


GridViewHeaderRowPresenter.ColumnHeaderContainerStyle 屬性

定義

取得或設定要用於資料行行首的 Style

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

屬性值

Style

要用於資料行行首容器的 Style。 預設為 null

備註

當您將這個類別實作為檢視模式的一 GridView 部分時,這個屬性的值 ColumnHeaderContainerStyle 會系結至 上的 GridView 屬性值。

您可以使用這個類別和相關類別中找到的各種屬性,在檢視模式中自訂資料行標頭 GridView 。 如需這些屬性的詳細資訊,以及它們之間的優先順序,請參閱 GridView 資料行標題樣式和範本概觀

當您設定樣式時,會套用一些限制。 如需詳細資訊,請參閱 樣式設定和範本化

XAML Attribute Usage

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

XAML 屬性項目用法

XAML 值

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

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

注意

屬性元素語法技術上可行,但不建議使用。 請參閱 內嵌樣式和範本。 您也可以使用 或 來參考系結,但並不常見。

相依性屬性資訊

識別碼欄位 ColumnHeaderContainerStyleProperty
設定為 的中繼資料屬性 true

適用於