In
order to use this property, the Placement property must be
set to Left, Right, Top, Bottom, or Center. (This is the edge of
the element to which the tooltip is aligned.)
PlacementRectangle Allows you to offset the position of the tooltip. This works in
much the same way as the HorizontalOffset and VerticalOffest
properties. This property doesn??™t have an effect if Placement
property is set to Mouse.
CHAPTER 7 n CLASSIC CONTROLS 200
Name Description
CustomPopupPlacementCallback Allows you to position a tooltip dynamically using code. If the
Placement property is set to Custom, this property identifies
the method that will be called by the ToolTip to get the
position where the ToolTip should be placed. Your callback
method receives three pieces of information??”popupSize
(the size of the ToolTip), targetSize (the size of the Placement-
Target, if it??™s used), and offset (a point that??™s created based on
HorizontalOffset and VerticalOffset properties). The method
returns a CustomPopupPlacement object that tells WPF
where to place the tooltip.
StaysOpen Has no effect in practice. The intended purpose of this property
is to allow you to create a tooltip that remains open until
the user clicks somewhere else. However, the ToolTip-
Service.ShowDuration property overrides the StaysOpen
property.
Pages:
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391