Method ShowInPopup
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
controlAbstractControlThe control that specifies the position origin.
afterShowActionAn optional callback action to be invoked after the popup is displayed.
dropDownMenuPositionHVDropDownAlignment?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.