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

Size控件Popup

targetSize
Size

SizePlacementTarget

offset
Point

PointHorizontalOffset属性值和VerticalOffset属性值计算得出的。

返回值

控件相对于该CustomPopupPlacement控件的可能Popup位置PlacementTarget的数组。

注解

显示弹出窗口时,会选择一个点,以最大化可见窗口的数量 ToolTip 。 每个ContextMenuPopup都定义一个类型的ToolTip属性。 CustomPopupPlacementCallback

扩展方法

名称 说明
GetMethodInfo(Delegate)

获取一个对象,该对象表示由指定委托表示的方法。

适用于

另请参阅