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
Point从HorizontalOffset属性值和VerticalOffset属性值计算得出的。
返回值
控件相对于该CustomPopupPlacement控件的可能Popup位置PlacementTarget的数组。
注解
显示弹出窗口时,会选择一个点,以最大化可见窗口的数量 ToolTip 。 每个ContextMenu类Popup都定义一个类型的ToolTip属性。 CustomPopupPlacementCallback
扩展方法
| 名称 | 说明 |
|---|---|
| GetMethodInfo(Delegate) |
获取一个对象,该对象表示由指定委托表示的方法。 |