ToolTipService::ToolTip Attached Property
Gets or sets the content of a tooltip.
Assembly: PresentationFramework (in PresentationFramework.dll)
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.
The XAML syntax shown here is appropriate if the object that fills the tooltip is a primitive with native type conversion, such as a string. If the object does not support native type conversion or support its own type converter, you might need to specify a verbose form of attached property syntax as follows:
<object> <ToolTipService.ToolTip> <objectThatFillsTheToolTip .../> </ToolTipService.ToolTip> </object>
The placeholder element objectThatFillsTheToolTip could also have child elements, if that object permits them. However, the need for this usage should be relatively rare, because most XAML usages will instead use practical control implementations of the service that are exposed by ToolTip.