ColumnHeaderContextMenu Property

GridViewHeaderRowPresenter.ColumnHeaderContextMenu Property

 

Gets or sets a ContextMenu for the column headers.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public ContextMenu ColumnHeaderContextMenu { get; set; }

Property Value

Type: System.Windows.Controls.ContextMenu

The ContextMenu for the column header row. The default is null.

When you implement this class as part of a GridView view mode, the value of this property is bound to the value of the ColumnHeaderContextMenu 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.

Identifier field

ColumnHeaderContextMenuProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft