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。
针对与 PlacementTarget 相关的 Popup 控件的可能 CustomPopupPlacement 位置数组。
显示弹出窗口时,会选择一个最大化可见窗口量的 ToolTip 点。 ContextMenu和 PopupToolTip 类各自定义 类型的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 |