PlacementTarget Property

ToolTip.PlacementTarget Property


Gets or sets the UIElement relative to which the ToolTip is positioned when it opens.

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

public UIElement PlacementTarget { get; set; }

Property Value

Type: System.Windows.UIElement

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

You can position a ToolTip by setting the PlacementTarget, PlacementRectangle, Placement, HorizontalOffset, and VerticalOffsetProperty properties. These properties behave the same as they do for a Popup. For more information, see Popup Placement Behavior.

Identifier field


Metadata properties set to true


The following example shows how to create and position a ToolTip.

.NET Framework
Available since 3.0
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft