PlacementTarget Attached Property
Collapse the table of content
Expand the table of content

ToolTipService.PlacementTarget Attached Property

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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

placementTargetName

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

Show:
© 2016 Microsoft