Επεξεργασία

Κοινή χρήση μέσω


GridViewHeaderRowPresenter.ColumnHeaderContainerStyle Property

Definition

Gets or sets the Style to use for the column headers.

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

Property Value

The Style to use for the column header container. The default is null.

Remarks

When you implement this class as part of a GridView view mode, the value of this property is bound to the value of the ColumnHeaderContainerStyle property on the GridView.

You can customize column headers in a GridView view mode by using a variety of properties that are found in this class and in related classes. For more information about these properties, and about the precedence between them, see GridView Column Header Styles and Templates Overview.

When you set styles, some restrictions apply. For more information, see the Styling and Templating.

XAML Attribute Usage

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

XAML Property Element Usage

XAML Values

ResourceExtension
One of the following: StaticResource, or DynamicResource. See XAML Resources.

StyleResourceKey
The key that identifies the style being requested. The key refers to an existing resource in a ResourceDictionary.

Note

Property element syntax is technically possible, but not recommended. See Inline Styles and Templates. A binding reference using or is also possible, but uncommon.

Dependency Property Information

Identifier field ColumnHeaderContainerStyleProperty
Metadata properties set to true None

Applies to