In this case, the second tooltip isn??™t shown until after the
InitialShowDelay period.
ToolTip Sets the content for the tooltip. Setting ToolTipService.ToolTip is
equivalent to setting the FrameworkElement.ToolTip property of
an element.
HasDropShadow Determines whether the tooltip has a diffuse black drop shadow
that makes it stand out from the window underneath.
ShowOnDisabled Determines the tooltip behavior when the associated element is
disabled. If True, the tooltip will appear for disabled elements
(elements that have their IsEnabled property set to False). The
default is False, in which case the tooltip appears only if the
associated element is enabled.
Placement, PlacementTarget, Allows you to control the placement of the tooltip. These prop-
PlacementRectangle, and erties work in the same way as the matching properties of the
VerticalOffset ToolTipHorizontalOffset class.
IsEnabled and IsOpen Allows you to control the tooltip in code. IsEnabled allows you to
temporarily disable a ToolTip, and IsOpen allows you to programmatically
show or hide a tooltip (or just check whether the tooltip
is open).
CHAPTER 7 n CLASSIC CONTROLS 203
The Popup
The Popup control has a great deal in common with the ToolTip, although neither one derives
from the other.
Like the ToolTip, the Popup can hold a single piece of content, which can include any WPF
element.
Pages:
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396