That gives you the chance to
directly set a variety of ToolTip properties.
The ToolTip is a content control, so you can adjust standard properties such as the Background
(so it isn??™t a yellow box), Padding, and Font. You can also modify the members that are
defined in the ToolTip class (and listed in Table 7-2). Most of these properties are designed to
help you place the tooltip exactly where you want it.
Table 7-2. ToolTip Properties
Name Description
HasDropShadow Determines whether the tooltip has a diffuse black drop
shadow that makes it stand out from the window underneath.
Placement Determines how the tooltip is positioned, using one of the
values from the PlacementMode enumeration. The default
value is Mouse, which means that the top-left corner of the
tooltip is placed relative to the current mouse position. (The
actual position of the tooltip may be offset from this starting
point based on the HorizontalOffset and VerticalOffset
properties.) Other possibilities allow you to place the tooltip
using absolute screen coordinates or place it relative to some
element (which you indicate using the PlacementTarget
property).
HorizontalOffset and VerticalOffset Allows you to nudge the tooltip into the exact position you
want. You can use positive or negative values.
PlacementTarget Allows you to place a tooltip relative to another element.
Pages:
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390