ToolTipService.SetPlacement method

Applies to Windows and Windows Phone

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

Syntax


public:
static void SetPlacement(
  DependencyObject^ element, 
  PlacementMode value
)

Parameters

element

Type: DependencyObject

The target element for the attached property value.

value

Type: 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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

ToolTipService

 

 

Show:
© 2014 Microsoft