ToolTipService.PlacementTarget Attached Property

May 11, 2014

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the visual element that the tooltip should be positioned in relation to.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

See GetPlacementTarget, SetPlacementTarget
<object ToolTipService.PlacementTarget="{Binding ElementName=placementTargetName}"/>

XAML Values


The Name or x:Name of the UI element that serves as the placement target. This syntax assumes that the working data context contains the named element. For more information, see ElementName.

Property Value

Type: System.Windows.UIElement
The visual element that the tooltip should be displayed in relation to.

Dependency property identifier field: PlacementTargetProperty 

Setting the PlacementTarget property on ToolTipService takes precedence over the PlacementTarget value of ToolTip.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2014 Microsoft