Prev | Current Page 383 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"


Instead, you??™ll need to show and hide them manually by setting the IsOpen property.
nTip It makes little sense to duplicate the same tooltip settings for several controls. If you plan to adjust
the way tooltips are handled in your entire application, use styles so that your settings are applied automatically,
as described in Chapter 12. Unfortunately, the ToolTipService property values are not inherited, which
means if you set them at the window or container level, they don??™t flow through to the nested elements.
Table 7-3. ToolTipService Properties
Name Description
InitialShowDelay Sets the delay (in milliseconds) before this tooltip is shown when
the mouse hovers over the element.
ShowDuration Sets the amount of time (in milliseconds) that this tooltip is shown
before it disappears, if the user does not move the mouse.
BetweenShowDelay Sets a time window (in milliseconds) during which the user can
move between tooltips without experiencing the InitialShowDelay.
For example, if BetweenShowDelay is 5000, the user has five
seconds to move to another control that has a tooltip. If the user
moves to another control within that time period, the new tooltip
is shown immediately. If the user takes longer, the Between-
ShowDelay window expires, and the InitialShowDelay kicks into
action.


Pages:
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395