Table of Contents

Method ShowAsDropDown

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

ShowAsDropDown(AbstractControl, Action?, HVDropDownAlignment?)

Shows the context menu as a drop-down menu under the specified control. This method uses native menu via handler.

public virtual void ShowAsDropDown(AbstractControl control, Action? afterShow = null, HVDropDownAlignment? position = null)

Parameters

control AbstractControl

The control with which this context menu is associated.

afterShow Action

The action to be invoked after the menu is shown.

position HVDropDownAlignment?

The position of the drop-down menu.