Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.68 KB

tooltip_placement.md

File metadata and controls

42 lines (27 loc) · 1.68 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.ToolTip.Placement
winrt property

Windows.UI.Xaml.Controls.ToolTip.Placement

-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