|
|
Questions and answers for Controls
ToolTip.
|
55. Controls ToolTip
|
|
55.1 Can I delay the display of a ToolTip ?
|
|
55.2 How can I use the ToolTipService properties to specify the position of a tooltip whose content is not a ToolTip object ?
|
|
55.3 Can I use the BetweenShowDelay Property ?
|
55.1 Can I delay the display of a ToolTip ?
|
|
You can set a "ToolTipService" property that causes a brief delay before a ToolTip displays. You set the properties of the "ToolTipService" class by attaching them directly to the element that exposes the tooltip.
|
[XAML]
ToolTip="Useful information goes here."> ToolTip with delay
|
55.2 How can I use the ToolTipService properties to specify the position of a tooltip whose content is not a ToolTip object ?
|
|
The following example shows how to use the "ToolTipService" properties to specify the position of a tooltip whose content is not a ToolTip object.
|
[XAML]
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" >
Uses the ToolTipService class <BulletDecorator/> <Ellipse.ToolTip/> <Ellipse/>
|
55.3 Can I use the BetweenShowDelay Property ?
|
|
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 to another.
|
[XAML]
Fill="Gray" HorizontalAlignment="Left" ToolTipService.InitialShowDelay="1000" ToolTipService.ShowDuration="7000" ToolTipService.BetweenShowDelay="2000">
PlacementRectangle="50,0,0,0" HorizontalOffset="10" VerticalOffset="20" HasDropShadow="false" Opened="whenToolTipOpens" Closed="whenToolTipCloses" >
Uses the ToolTip Class <BulletDecorator/> <Ellipse.ToolTip/> <Ellipse/>
|
|