ToolTip Property

FrameworkContentElement.ToolTip Property


Gets or sets the tool-tip object that is displayed for this element in the user interface (UI).

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

public object ToolTip { get; set; }

Property Value

Type: System.Object

The tooltip object. See Remarks below for details on why this parameter is not strongly typed.

If the value of this property is of type ToolTip, then that is the tool-tip that will be used in the UI. If the value is of any other type, then that value will be used as the content for a ToolTip provided (constructed) by the system. For more information see ToolTipService. The service class provides attached properties that can be used to further customize a tool-tip.

<object ToolTip="toolTipContent"/>

    <ToolTip .../>
- or -


A string that becomes the display text for the ToolTip.


Some object, provided in object element form, that should be used as the content for the FrameworkContentElement . Typically this would be a FrameworkElement or some other element that creates layout compositing for the ToolTip, eventually containing text content within the compositing. In this usage, the ToolTip element is created implicitly from the parsed XAML, and the toolTipObjectContent content is set as its ContentControl.Content property.

<ToolTip .../>

See ToolTip.

Identifier field


Metadata properties set to true


Legacy Code Example

The following example sets the value of the ToolTip property directly to a string.

Code snippet is not found. Confirm that the code snippet name 'TableSnippets2' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft