CustomPopupPlacement 結構

定義

定義 Popup 控制項的自訂位置參數。

public value class CustomPopupPlacement
public struct CustomPopupPlacement
type CustomPopupPlacement = struct
Public Structure CustomPopupPlacement
繼承
CustomPopupPlacement

備註

結構 CustomPopupPlacement 會定義控制項相對於其父系的位置 Popup ,並定義當螢幕界限遮蔽控制項時,要如何 Popup 變成更可見的位置。

System.Windows.Controls.Primitives.CustomPopupPlacementCallback當 屬性設定 Custom 為 時, Placement 委派會傳回這些結構的陣列做為 的自訂放置選項 Popup

建構函式

CustomPopupPlacement(Point, PopupPrimaryAxis)

初始化 CustomPopupPlacement 結構的新執行個體。

屬性

Point

取得或設定與目前物件相對的點,Popup 控制項的左上角會放置在該點。

PrimaryAxis

取得或設定當 Popup 被畫面邊界遮蔽時,移動 Popup 控制項的方向。

方法

Equals(Object)

比較這個結構與另一個 CustomPopupPlacement 結構,以判斷它們是否相等。

GetHashCode()

取得這個結構的雜湊程式碼。

運算子

Equality(CustomPopupPlacement, CustomPopupPlacement)

比較兩個 CustomPopupPlacement 結構,判斷它們是否相等。

Inequality(CustomPopupPlacement, CustomPopupPlacement)

比較兩個 CustomPopupPlacement 結構,判斷它們是否不相等。

適用於

另請參閱