Delen via


ToolTipService.SetPlacement(DependencyObject, PlacementMode) Method

Definition

Sets the ToolTipService.Placement XAML attached property value for the specified target element.

public:
 static void SetPlacement(DependencyObject ^ element, PlacementMode value);
 static void SetPlacement(DependencyObject const& element, PlacementMode const& value);
public static void SetPlacement(DependencyObject element, PlacementMode value);
function setPlacement(element, value)
Public Shared Sub SetPlacement (element As DependencyObject, value As PlacementMode)

Parameters

element
DependencyObject

The target element for the attached property value.

value
PlacementMode

One of the PlacementMode values, which specifies where the tooltip should appear relative to the control that is the placement target.

Remarks

This method supports the ToolTipService.Placement attached property usage for Extensible Application Markup Language (XAML). The target element is not necessarily a ToolTip, it might be an element that owns an inferred tooltip through usage of ToolTipService APIs. Also, the target element is not necessarily the final placement target, because that can be reset by setting the ToolTipService.PlacementTarget attached property.

Applies to

See also