Export (0) Print
Expand All

ToolTip.PlacementTarget Property

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)

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft