Windows.UI.Xaml.Controls.ToolTip.Placement

June 22, 2022 · View on GitHub

-description

Gets or sets how a ToolTip is positioned in relation to the placement target element.

-xaml-syntax

<ToolTip Placement="placementModeMemberName"/>

-xaml-values

placementModeMemberName
placementModeMemberNameA named constant of the PlacementMode enumeration, such as Top.
## -property-value One of the [PlacementMode](../windows.ui.xaml.controls.primitives/placementmode.md) values.

-remarks

If there is no explicit PlacementTarget, the placement target for a ToolTip is the element that specifies the ToolTip as the value for its TooltipService.ToolTip attached property value, and any Placement value applies to that target.

Placement and PlacementTarget are usually left as the defaults. The scenario for specifying either or both of these properties is if you are trying to avoid a case where the tooltip obscures the content it is referring to while the tooltip is displayed.

-examples

The following code example demonstrates the placement modes for a ToolTip.

[!code-xaml1]

-see-also

PlacementMode, PlacementTarget