ToolTipService.ToolTip Attached Property

Gets or sets the content of a tooltip.

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

See ToolTipService.GetToolTip, ToolTipService.SetToolTip
See ToolTipService.GetToolTip, ToolTipService.SetToolTip
See ToolTipService.GetToolTip, ToolTipService.SetToolTip
<object ToolTipService.ToolTip="Object" .../>

Property Value

A DependencyObject element that defines the content for a tooltip. The default value is a null reference (Nothing in Visual Basic).

Identifier field


Metadata properties set to true


Tooltip content can range from a simple text string to more complex objects such as a StackPanel element that has embedded controls and images. However, tooltip content cannot take focus. For example, a Button inside a tooltip cannot receive a Click event.

Windows Presentation Foundation (WPF) provides a ToolTip control that defines a tooltip and provides properties that you can use to specify tooltip behavior. However, a tooltip can be any user interface (UI) element, such as a DockPanel or an Image.

This property is an attached property. For information about how to get or set the value of this property in code, see the GetToolTip and SetToolTip methods.

The following example shows how to specify a tooltip by using the ToolTipService. For the complete sample, see ToolTip Assignment Sample.

<Ellipse Fill="Blue" 
       ToolTip="This is a tooltip"
       Height="25" Width="40"/>

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.

Community Additions