PlacementTarget Attached Property

ToolTipService.PlacementTarget Attached Property


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 . For information about how to get or set this property in code, see the GetPlacementTarget and SetPlacementTarget methods. GTMT

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
© 2015 Microsoft