CustomPopupPlacementCallback 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示提供 Popup 控制項自訂定位的方法。
public delegate cli::array <System::Windows::Controls::Primitives::CustomPopupPlacement> ^ CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
C#
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 屬性。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |