Table of Contents

Method ShowInPopup

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

ShowInPopup(AbstractControl, Action?, HVDropDownAlignment?)

Displays the context menu in a popup window.

public virtual void ShowInPopup(AbstractControl control, Action? afterShow = null, HVDropDownAlignment? dropDownMenuPosition = null)

Parameters

control AbstractControl

The control that specifies the position origin.

afterShow Action

An optional callback action to be invoked after the popup is displayed.

dropDownMenuPosition HVDropDownAlignment?

An optional parameter specifying the alignment of the popup relative to the control. If not provided, a default alignment is used.

Remarks

This method creates and configures a popup window to display the context menu. If the popup is already initialized, it reuses the existing instance. The afterShow callback is executed after the popup is fully displayed, allowing additional actions to be performed.