ToolTip.PlacementTarget Property

July 28, 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 or control that the tool tip should be positioned in relation to when opened by the ToolTipService.

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

public UIElement PlacementTarget { get; set; }
<ToolTip 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 or control that the tool tip should be positioned in relation to when opened by the ToolTipService. The default is null.

The PlacementTarget and Placement properties are used together to determine which side of a visual element to place the ToolTip.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft