ColumnHeaderToolTip Property

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)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public Object ColumnHeaderToolTip { get; set; }
/** @property */
public Object get_ColumnHeaderToolTip ()

/** @property */
public void set_ColumnHeaderToolTip (Object value)

public function get ColumnHeaderToolTip () : Object

public function set ColumnHeaderToolTip (value : Object)

<object>
  <object.ToolTip>
    <ToolTip .../>
  </object.ToolTip>
</object>
- or -
<object>
  <object.ToolTip>
    toolTipObjectContent
  </object.ToolTip>
</object>
<object ToolTip="toolTipContent"/>
 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. 

Property Value

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.

Identifier field

ColumnHeaderToolTipProperty

Metadata properties set to true

None

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.

The following example shows how to set the ColumnHeaderToolTip property. For the complete sample, see ListView implementing a GridView View.

      <GridView AllowsColumnReorder="true"
                ColumnHeaderToolTip="Employee Information">

...

      </GridView>

GridView myGridView = new GridView();
myGridView.AllowsColumnReorder = true; 
myGridView.ColumnHeaderToolTip = "Employee Information";

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2016 Microsoft