ToolTipService.InitialShowDelay Attached Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the length of time before a tooltip opens.
see GetInitialShowDelay, and SetInitialShowDelay
see GetInitialShowDelay, and SetInitialShowDelay
see GetInitialShowDelay, and SetInitialShowDelay
Exceptions
The value of the InitialShowDelay property is less than zero (0).
Examples
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>
Remarks
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.
Dependency Property Information
Item | Value |
---|---|
Identifier field | InitialShowDelayProperty |
Metadata properties set to true |
None |