-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.ToolTip.Placement |
winrt property |
Gets or sets how a ToolTip is positioned in relation to the placement target element.
<ToolTip Placement="placementModeMemberName"/>
- placementModeMemberName
- placementModeMemberNameA named constant of the PlacementMode enumeration, such as Top.
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.
The following code example demonstrates the placement modes for a ToolTip.
[!code-xaml1]