IPopupHost.

ConfigurePosition(IVisual, PlacementMode, Point, PopupAnchor, PopupGravity, PopupPositionerConstraintAdjustment, Rect?) Method

Summary

Configures the position of the popup according to a target control and a set of placement parameters.
Namespace
Avalonia.Controls.Primitives
Containing Type
IPopupHost

Syntax

void ConfigurePosition(IVisual target, PlacementMode placement, Point offset, PopupAnchor anchor = None, PopupGravity gravity = None, PopupPositionerConstraintAdjustment constraintAdjustment = All, Rect? rect = null)

Parameters

Name Type Description
target IVisual The placement target.
placement PlacementMode The placement mode.
offset Point The offset, in device-independent pixels.
anchor PopupAnchor The anchor point.
gravity PopupGravity The popup gravity.
constraintAdjustment PopupPositionerConstraintAdjustment Defines how a popup position will be adjusted if the unadjusted position would result in the popup being partly constrained.
rect Rect? The anchor rect. If null, the bounds of target will be used.

Return Value

Type Description
void