GridView.ColumnHeaderToolTip Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the content of a tooltip that appears when the mouse pointer pauses over one of the column headers.
public:
property System::Object ^ ColumnHeaderToolTip { System::Object ^ get(); void set(System::Object ^ value); };
public object ColumnHeaderToolTip { get; set; }
member this.ColumnHeaderToolTip : obj with get, set
Public Property ColumnHeaderToolTip As 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.
The following example shows how to set the ColumnHeaderToolTip property.
<GridView AllowsColumnReorder="true"
ColumnHeaderToolTip="Employee Information">
</GridView>
GridView myGridView = new GridView();
myGridView.AllowsColumnReorder = true;
myGridView.ColumnHeaderToolTip = "Employee Information";
Dim myGridView As New GridView()
myGridView.AllowsColumnReorder = True
myGridView.ColumnHeaderToolTip = "Employee Information"
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.
Item | Value |
---|---|
Identifier field | ColumnHeaderToolTipProperty |
Metadata properties set to true |
None |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: