GridView.ColumnHeaderToolTip Property

 

Gets or sets the content of a tooltip that appears when the mouse pointer pauses over one of the column headers.

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

Public Property ColumnHeaderToolTip As Object

Property Value

Type: System.Object

An object that represents the content that appears as a tooltip when the mouse pointer is paused over one of the column headers. The default value is not defined.

This property represents one of several ways to lay out and style column headers. For more information, see GridView Column Header Styles and Templates Overview.

<object ToolTip="toolTipContent"/>

<object>
  <object.ToolTip>
    <ToolTip .../>
  </object.ToolTip>
</object>
- or -
<object>
  <object.ToolTip>
    toolTipObjectContent
  </object.ToolTip>
</object>

toolTipContent

A string that becomes the display text for the ColumnHeaderToolTip.

toolTipObjectContent

An object to use as the content for the tooltip. Typically, this object is a FrameworkElement or some other element that defines a layout for the ColumnHeaderToolTip, such as a text element. In this usage, a ToolTip element is implicitly created from the parsed XAML, and the toolTipObjectContent content is set as its ContentControl.Content property.

<ToolTip .../>

See ToolTip.

Identifier field

ColumnHeaderToolTipProperty

Metadata properties set to true

None

The following example shows how to set the ColumnHeaderToolTip property.

<GridView AllowsColumnReorder="true"
          ColumnHeaderToolTip="Employee Information">
</GridView>
Dim myGridView As New GridView()
myGridView.AllowsColumnReorder = True
myGridView.ColumnHeaderToolTip = "Employee Information"

.NET Framework
Available since 3.0
Return to top
Show: