ToolTipService.PlacementTarget Attached Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

See GetPlacementTarget, SetPlacementTarget

Property Value

Type: System.Windows.UIElement

The UIElement that is the logical parent of the ToolTip control. The default value is null.

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.

Identifier field


Metadata properties set to true


Return to top