PopupWindowPositionFlags Enumeration

Specifies how the CalculatePopupWindowPosition(NativePoint, NativeSize, PopupWindowPositionFlags, NativeRectangle, NativeSize) function positions the pop-up window horizontally and vertically.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum PopupWindowPositionFlags

Remarks

Members

Default 0 Default (HorizontalLeftAlign + VerticalTopAlign + Horizontal).
HorizontalLeftAlign 0 Positions the pop-up window so that its left edge is aligned with the coordinate specified by the anchorPoint->x parameter.
VerticalTopAlign 0 Positions the pop-up window so that its top edge is aligned with the coordinate specified by the anchorPoint->y parameter.
Horizontal 0 If the pop-up window cannot be shown at the specified location without overlapping the excluded rectangle, the system tries to accommodate the requested horizontal alignment before the requested vertical alignment.
HorizontalCenterAlign 4 Centers pop-up window horizontally relative to the coordinate specified by the anchorPoint->x parameter.
HorizontalRightAlign 8 Positions the pop-up window so that its right edge is aligned with the coordinate specified by the anchorPoint->x parameter.
VerticalCenterAlign 16 Centers the pop-up window vertically relative to the coordinate specified by the anchorPoint->y parameter.
VerticalBottomAlign 32 Positions the pop-up window so that its bottom edge is aligned with the coordinate specified by the anchorPoint->y parameter.
Vertical 64 If the pop-up window cannot be shown at the specified location without overlapping the excluded rectangle, the system tries to accommodate the requested vertical alignment before the requested horizontal alignment.
WorkArea 65,536 Restricts the pop-up window to within the screen's work area.

If this flag is not set, the pop-up window is restricted to the work area only if the input point is within the work area.

See Also