Quantcast
Channel: 2,000 Things You Should Know About WPF » Tooltip
Viewing all articles
Browse latest Browse all 17

#861 – Tooltip Delays and Timing

$
0
0

Several properties of the TooltipService class affect timing of tooltips displayed for a control.

  • InitialShowDelay – how long to wait after hovering over a control before popping up the tooltip  (default is 0.4 secs)
  • ShowDuration – how long to show a tooltip before hiding it (assuming that you don’t move the mouse)  (default is 5 secs)
  • BetweenShowDelay – how much time to allow for moving to another control when showing the tooltip on the second control without an initial delay  (default is 0.1 secs)

For example, assuming that you have a couple of buttons that show tooltips and these properties have default values:

  • You hover over the first button
  • After 0.4 secs, the tooltip shows up
  • If you wait 5 secs, the tooltip will disappear
  • If you move off the button, the tooltip disappears immediately
  • If you move to the second button within 0.1 secs, the first tooltip is quickly replaced by the second tooltip (no delay)

861-001

 


Filed under: Controls Tagged: BetweenShowDelay, Controls, InitialShowDelay, ShowDuration, Tooltip, TooltipService, WPF

Viewing all articles
Browse latest Browse all 17

Trending Articles