TeachingTipPlacementMode 列舉

定義

定義常數,指出 TeachingTip 教學提示的慣用位置。

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

public enum class TeachingTipPlacementMode
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Version(1)]
enum class TeachingTipPlacementMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
enum class TeachingTipPlacementMode
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Version(1)]
public enum TeachingTipPlacementMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public enum TeachingTipPlacementMode
Public Enum TeachingTipPlacementMode
繼承
TeachingTipPlacementMode
屬性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute VersionAttribute ContractVersionAttribute

欄位

Auto 0

當目標為非目標且高於目標專案時,沿著 xaml 根的底部。

Bottom 2

當目標為非目標,且目標專案低於目標專案時,沿著 xaml 根的底部。

BottomLeft 8

當非目標專案和目標專案下方展開目標專案時,xaml 根的左下角。

BottomRight 7

當目標為非目標,且目標元素下方在目標專案下方展開時,xaml 根的右下角。

Center 13

當目標為非目標時,並指向目標專案的中心時,xaml 根的中央。

Left 3

當目標為非目標時,以及目標專案左邊時,沿著 xaml 根的左側。

LeftBottom 10

當目標專案未設為目標且目標專案左下展開時,xaml 根的左下角。

LeftTop 9

當目標專案未設為目標且目標專案左邊展開時,xaml 根的左上角會向上展開。

Right 4

當目標為非目標時,以及目標專案右邊時,沿著 xaml 根的右側。

RightBottom 12

當目標專案非目標,且目標專案右下展開時,xaml 根的右下角。

RightTop 11

當目標專案非目標專案和目標專案右上方展開時,xaml 根的右上角。

Top 1

當目標為非目標且高於目標專案時,沿著 xaml 根的頂端。

TopLeft 6

當非目標專案和目標專案上方展開目標時,xaml 根的左上角會向左展開。

TopRight 5

當非目標專案和目標專案在目標專案上方展開時,xaml 根的右上角。

範例

提示

如需詳細資訊、設計指引和程式碼範例,請參閱 教學提示

WinUI 3 資源庫WinUI 2 資源庫應用程式包含大部分 WinUI 3 和 WinUI 2 控制項、特性和功能的互動式範例。

如果已安裝,請按一下下列連結加以開啟: WinUI 3 資源庫WinUI 2 資源庫

如果未安裝,您可以從 Microsoft Store 下載 WinUI 3 資源庫WinUI 2 資源庫

您也可以從 GitHub 取得的原始程式碼 (使用 WinUI 3 的主要 分支和 WinUI 2) 的 winui2 分支。

適用於

另請參閱