ToolTipService.BetweenShowDelay Attached Property
Assembly: PresentationFramework (in PresentationFramework.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
Property ValueAn integer value that represents the delay time in milliseconds. The default value is 100 milliseconds.
Metadata properties set to true
Typically, when a user moves the mouse pointer over an object that has a tooltip, there is a delay before the tooltip is displayed. This delay is equal to the value of the InitialShowDelay property. However, after a tooltip is displayed there is a period of time during which another tooltip can be displayed without waiting for the InitialShowDelay time to pass. You specify this time period by using the BetweenShowDelay property. When the user moves the mouse within this time period from one element that has a visible tooltip to another element that has a tooltip, the value of the InitialShowDelay property for the second tooltip is not applied and the second tooltip appears immediately.
This example shows how to use the BetweenShowDelay 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.
In the following example, the InitialShowDelay property is set to one second (1000 milliseconds) and the BetweenShowDelay is set to two seconds (2000 milliseconds) for the tooltips of both 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 InitialShowDelay 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.
<Ellipse Height="25" Width="50" Fill="Gray" HorizontalAlignment="Left" ToolTipService.InitialShowDelay="1000" ToolTipService.ShowDuration="7000" ToolTipService.BetweenShowDelay="2000"> <Ellipse.ToolTip> <ToolTip Placement="Right" PlacementRectangle="50,0,0,0" HorizontalOffset="10" VerticalOffset="20" HasDropShadow="false" Opened="whenToolTipOpens" Closed="whenToolTipCloses" > <BulletDecorator> <BulletDecorator.Bullet> <Ellipse Height="10" Width="20" Fill="Blue"/> </BulletDecorator.Bullet> <TextBlock>Uses the ToolTip Class</TextBlock> </BulletDecorator> </ToolTip> </Ellipse.ToolTip> </Ellipse>
For the complete sample, see ToolTipService Sample.
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 EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.