CustomPopupPlacementCallback 代理人

定義

表示提供 Popup 控制項自訂定位的方法。

public delegate cli::array <System::Windows::Controls::Primitives::CustomPopupPlacement> ^ CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
public delegate System.Windows.Controls.Primitives.CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
type CustomPopupPlacementCallback = delegate of Size * Size * Point -> CustomPopupPlacement[]
Public Delegate Function CustomPopupPlacementCallback(popupSize As Size, targetSize As Size, offset As Point) As CustomPopupPlacement() 

參數

popupSize
Size

Popup 控制項的 Size

targetSize
Size

SizePlacementTarget

offset
Point

HorizontalOffsetVerticalOffset 屬性值計算而得之 Point

傳回值

Popup 控制項相對於 PlacementTarget 之可能 CustomPopupPlacement 位置的陣列。

備註

顯示快顯時,會選擇一個點,以最大化可見的 ToolTip 視窗數量。 、 ContextMenuPopupToolTip 類別都會定義 類型的 CustomPopupPlacementCallback 屬性。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於

另請參閱