Share via


How to: Delay the Display of a ToolTip

This example shows how to set a ToolTipService property that causes a brief delay before a ToolTip displays. You set the properties of the ToolTipService class by attaching them directly to the element that exposes the tooltip.

Example

<TextBox HorizontalAlignment="Left" ToolTipService.InitialShowDelay="1500"
   ToolTip="Useful information goes here.">
     ToolTip with delay
</TextBox>

For the complete sample from which the previous example was extracted, see ToolTip Sample. For a more extensive sample that shows how to get and set the ToolTipService properties in markup and also by using code, see ToolTipService Sample.

See Also

Tasks

How to: Create a ToolTip
How to: Use the ContextMenuService

Reference

ToolTip
ToolTipService

Concepts

ToolTip Overview

Other Resources

ToolTip How-to Topics
ToolTip Samples