PopupPositionerParameters Structure
Unstable.
Note: This API is unstable and may change in a future release.
Provides positioning parameters to IPopupPositioner.
Definition
Namespace: Avalonia.Controls.Primitives.PopupPositioning
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
[UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
public struct PopupPositionerParameters : IEquatable<PopupPositionerParameters>
<UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")>
Public Structure PopupPositionerParameters
Implements IEquatable(Of PopupPositionerParameters)
[<SealedAttribute>]
[<UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")>]
type PopupPositionerParameters =
struct
inherit ValueType
interface IEquatable<PopupPositionerParameters>
end
Inheritance | Object → ValueType → PopupPositionerParameters |
Implements | IEquatable(PopupPositionerParameters) |
Remarks
The IPopupPositioner provides a collection of rules for the placement of a popup relative to its parent. Rules can be defined to ensure the popup remains within the visible area's borders, and to specify how the popup changes its position, such as sliding along an axis, or flipping around a rectangle. These positioner-created rules are constrained by the requirement that a popup must intersect with or be at least partially adjacent to its parent surface.
Properties
Anchor | Defines the anchor point for the anchor rectangle. |
AnchorRectangle | Specifies the anchor rectangle within the parent that the popup will be placed relative to, in device-independent pixels. |
ConstraintAdjustment | Specify how the popup should be positioned if the originally intended position caused the popup to be constrained. |
Gravity | Defines in what direction a popup should be positioned, relative to the anchor point of the parent. |
Offset | Specify the popup position offset relative to the position of the anchor on the anchor rectangle and the anchor on the popup. |
Size | Set the size of the popup that is to be positioned with the positioner object, in device- independent pixels. |
Methods
GetType() | Gets the Type of the current instance. (Inherited from Object) |