Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ToolTipService.ShowDuration Attached Property
Definition
- Namespace:
- System.Windows.Controls
- Assembly:
- PresentationFramework.dll
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 amount of time that a tooltip remains visible.
see GetShowDuration, and SetShowDuration
see GetShowDuration, and SetShowDuration
see GetShowDuration, and SetShowDuration
Exceptions
The value of the InitialShowDelay property is less than zero (0).
Examples
The following example shows how to set the ShowDuration property for a tooltip.
<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>
ToolTipService.SetShowDuration(ellipse1, 7000);
ToolTipService.SetShowDuration(ellipse1, 7000)
Remarks
This property defines the time that a tooltip remains visible while the user pauses the mouse pointer over the object that defines the tooltip. If the user moves the mouse pointer off of the object, the tooltip closes.
This property is an attached property. For information about how to get or set the value of this property in code, see the GetShowDuration and SetShowDuration methods.
Dependency Property Information
| Item | Value |
|---|---|
| Identifier field | ShowDurationProperty |
Metadata properties set to true |
None |
Applies to
See also
Feedback
Was this page helpful?
