PopupPlacementMode 列舉

定義

定義常數,指定相對於視覺專案放置快顯的慣用位置。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public enum class PopupPlacementMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
enum class PopupPlacementMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public enum PopupPlacementMode
Public Enum PopupPlacementMode
繼承
PopupPlacementMode
屬性

欄位

Auto 0

自動決定慣用的位置。

Bottom 2

慣用的位置位於目標元素下方。

BottomEdgeAlignedLeft 7

慣用的位置位於目標元素下方,其中快顯的左邊緣對齊目標元素的左邊緣。

BottomEdgeAlignedRight 8

慣用的位置位於目標元素下方,其中快顯的右邊緣對齊目標元素的右邊緣。

Left 3

慣用的位置是在目標元素的左邊。

LeftEdgeAlignedBottom 10

慣用的位置是位於目標元素的左邊,而快顯的下邊緣與目標元素的下邊緣對齊。

LeftEdgeAlignedTop 9

慣用的位置是位於目標元素的左邊,而快顯的上邊緣與目標元素的上邊緣對齊。

Right 4

慣用的位置位於目標元素的右邊。

RightEdgeAlignedBottom 12

慣用的位置是位於目標元素的右邊,而快顯的下邊緣與目標元素的下邊緣對齊。

RightEdgeAlignedTop 11

慣用的位置是位於目標專案的右邊,其中快顯的上邊緣與目標元素的上邊緣對齊。

Top 1

慣用的位置高於目標元素。

TopEdgeAlignedLeft 5

慣用的位置位於目標元素上方,其中快顯的左邊緣對齊目標元素的左邊緣。

TopEdgeAlignedRight 6

慣用的位置位於目標元素上方,其中快顯的右邊緣對齊目標元素的右邊緣。

適用於