Skip to content

Latest commit

 

History

History
76 lines (41 loc) · 2.25 KB

popupplacementmode.md

File metadata and controls

76 lines (41 loc) · 2.25 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Controls.Primitives.PopupPlacementMode
winrt enum

Microsoft.UI.Xaml.Controls.Primitives.PopupPlacementMode

-description

Defines constants that specify the preferred location for positioning a popup relative to a visual element.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-enum-fields

-field Auto: 0

Preferred location is determined automatically.

-field Top: 1

Preferred location is above the target element.

-field Bottom: 2

Preferred location is below the target element.

-field Left: 3

Preferred location is to the left of the target element.

-field Right: 4

Preferred location is to the right of the target element.

-field TopEdgeAlignedLeft: 5

Preferred location is above the target element, with the left edge of popup aligned with left edge of the target element.

-field TopEdgeAlignedRight: 6

Preferred location is above the target element, with the right edge of popup aligned with right edge of the target element.

-field BottomEdgeAlignedLeft: 7

Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element.

-field BottomEdgeAlignedRight: 8

Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element.

-field LeftEdgeAlignedTop: 9

Preferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element.

-field LeftEdgeAlignedBottom: 10

Preferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element.

-field RightEdgeAlignedTop: 11

Preferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element.

-field RightEdgeAlignedBottom: 12

Preferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element.

-remarks

-see-also

-examples