CustomPopupPlacementCallback 代理人
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示提供 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()
參數
- targetSize
- Size
- offset
- Point
由 HorizontalOffset 和 VerticalOffset 屬性值計算而得之 Point。
傳回值
Popup 控制項相對於 PlacementTarget 之可能 CustomPopupPlacement 位置的陣列。
備註
顯示快顯時,會選擇一個點,以最大化可見的 ToolTip 視窗數量。 、 ContextMenuPopup 和 ToolTip 類別都會定義 類型的 CustomPopupPlacementCallback 屬性。
擴充方法
GetMethodInfo(Delegate) |
取得表示特定委派所代表之方法的物件。 |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應