Export (0) Print
Expand All

ToolTipService.InitialShowDelay Attached Property

Gets or sets the length of time before a tooltip opens.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

See GetInitialShowDelay, SetInitialShowDelay
<object ToolTipService.InitialShowDelay="int" .../>

Property Value

Type: System.Int32
An integer value that represents the display delay time in milliseconds. The default value is MouseHoverTime in milliseconds.

Identifier field

InitialShowDelayProperty

Metadata properties set to true

None

ExceptionCondition
ArgumentException

The value of the InitialShowDelay property is less than zero (0).

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.

For information about how to get or set this property in code, see the GetInitialShowDelay and SetInitialShowDelay methods.

The following example shows how to set the ToolTipService timing properties.

<Ellipse Height="25" Width="50" 
      Fill="Gray" 
      HorizontalAlignment="Left"
      ToolTipService.InitialShowDelay="1000"
      ToolTipService.ShowDuration="7000"
      ToolTipService.BetweenShowDelay="2000"
      ToolTipService.Placement="Right" 
      ToolTipService.PlacementRectangle="50,0,0,0"
      ToolTipService.HorizontalOffset="10" 
      ToolTipService.VerticalOffset="20"
      ToolTipService.HasDropShadow="false"
      ToolTipService.ShowOnDisabled="true" 
      ToolTipService.IsEnabled="true"
      ToolTipOpening="whenToolTipOpens"
      ToolTipClosing="whenToolTipCloses"
      >
  <Ellipse.ToolTip>
    <BulletDecorator>
      <BulletDecorator.Bullet>
        <Ellipse Height="10" Width="20" Fill="Blue"/>
      </BulletDecorator.Bullet>
      <TextBlock>Uses the ToolTipService class</TextBlock>
    </BulletDecorator>
  </Ellipse.ToolTip>
</Ellipse>

More Code

How to: Use the BetweenShowDelay PropertyThis 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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft