Table of Contents

Method ShowInContainer

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ShowInContainer(AbstractControl, PointD?, HVDropDownAlignment?)

Displays the control as a popup within the specified container at the given position and alignment.

public virtual void ShowInContainer(AbstractControl container, PointD? position = null, HVDropDownAlignment? align = null)

Parameters

container AbstractControl

The container control in which to display the popup. Cannot be null.

position PointD?

The position, in container coordinates, where the popup should appear. If null, the current mouse position is used.

align HVDropDownAlignment?

The alignment of the popup relative to the container. If null, the default alignment is used.

Remarks

If the popup is already displayed in another container, it will be removed from that container before being shown in the new one. The popup's position and size are adjusted to ensure it remains within the bounds of the specified container.