Bewerken

Share via


ToolTipService.PlacementTarget Attached Property

Definition

Gets or sets the object relative to which the tooltip is positioned.

see GetPlacementTarget, and SetPlacementTarget
see GetPlacementTarget, and SetPlacementTarget
see GetPlacementTarget, and SetPlacementTarget

Remarks

The PlacementTarget does not have to be the object on which the tooltip is defined. For example, a TextBlock that describes an Image could specify its tooltip to appear over the Image when the user pauses the mouse pointer on the TextBlock.

If you do not specify a PlacementTarget and the tooltip has a visual parent, the visual parent acts as the PlacementTarget. If the tooltip does not have a visual parent and the value of the PlacementTarget property is null, the tooltip control is positioned relative to the upper-left corner of the screen.

This property is an attached property. For information about how to get or set this property in code, see the GetPlacementTarget and SetPlacementTarget methods.

PlacementTarget behaves similarly to the Popup.PlacementTarget property. For more information, see Popup Placement Behavior.

Dependency Property Information

Identifier field PlacementTargetProperty
Metadata properties set to true None

Applies to

See also