Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-use-the-betweenshowdelay-property.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.9 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Use the BetweenShowDelay Property 03/30/2017
ToolTip control [WPF], BetweenShowDelay time property
BetweenShowDelay time property [WPF]
984ea76d-f2a2-4326-a02e-f97ec3d036d6

How to: Use the BetweenShowDelay Property

This example shows how to use the xref:System.Windows.Controls.ToolTipService.BetweenShowDelay%2A time property so that tooltips appear quickly—with little or no delay—when a user moves the mouse pointer from one tooltip directly to another.

Example

In the following example, the xref:System.Windows.Controls.ToolTipService.InitialShowDelay%2A property is set to one second (1000 milliseconds) and the xref:System.Windows.Controls.ToolTipService.BetweenShowDelay%2A is set to two seconds (2000 milliseconds) for the tooltips of both xref:System.Windows.Shapes.Ellipse controls. If you display the tooltip for one of the ellipses and then move the mouse pointer to another ellipse within two seconds and pause on it, the tooltip of the second ellipse displays immediately.

In either of the following scenarios, the xref:System.Windows.Controls.ToolTipService.InitialShowDelay%2A applies, which causes the tooltip for the second ellipse to wait one second before it appears:

  • If the time it takes to move to the second button is more than two seconds.

  • If the tooltip is not visible at the beginning of the time interval for the first ellipse.

[!code-xamlToolTipService#ToolTip]
[!code-xamlToolTipService#NoToolTip]

See also