CustomPopupPlacement 结构

定义

定义 Popup 控件的自定义放置参数。Defines custom placement parameters for a Popup control.

public value class CustomPopupPlacement
public struct CustomPopupPlacement
type CustomPopupPlacement = struct
Public Structure CustomPopupPlacement
继承
CustomPopupPlacement

注解

结构定义了相对于其父级Popup的控件的位置Popup , 并定义了在屏幕边界遮盖时, 移动到的位置变得更加明显。 CustomPopupPlacementThe CustomPopupPlacement structure defines a location for a Popup control with respect to its parent, and defines how the Popup moves to become more visible when it is obscured by a screen boundary.

当属性设置为Popup System.Windows.Controls.Primitives.CustomPopupPlacementCallback Placement 时,委托将这些结构的数组Custom返回为的自定义放置选项。A System.Windows.Controls.Primitives.CustomPopupPlacementCallback delegate returns an array of these structures as custom placement options for a Popup when the Placement property is set to Custom.

构造函数

CustomPopupPlacement(Point, PopupPrimaryAxis)

初始化 CustomPopupPlacement 结构的新实例。Initializes a new instance of the CustomPopupPlacement structure.

属性

Point

获取或设置相对于放置 Popup 控件左上角的目标对象的点。Gets or sets the point that is relative to the target object where the upper-left corner of the Popup control is placed.

PrimaryAxis

获取或设置当屏幕边界遮盖 Popup 时,移动 Popup 控件所采取的方向。Gets or sets the direction in which to move a Popup control when the Popup is obscured by screen boundaries.

方法

Equals(Object)

将此结构与另一个 CustomPopupPlacement 结构进行比较,以确定是否相等。Compares this structure with another CustomPopupPlacement structure to determine whether they are equal.

GetHashCode()

获取此结构的哈希代码。Gets the hash code for this structure.

操作员

Equality(CustomPopupPlacement, CustomPopupPlacement)

比较两个 CustomPopupPlacement 结构以确定它们是否相等。Compares two CustomPopupPlacement structures to determine whether they are equal.

Inequality(CustomPopupPlacement, CustomPopupPlacement)

比较两个 CustomPopupPlacement 结构以确定它们是否不相等。Compares two CustomPopupPlacement structures to determine whether they are not equal.

适用于

另请参阅