Table of Contents

Method EnableContextMenuOnLongTap

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

EnableContextMenuOnLongTap(AbstractControl, bool)

Enables showing context menu on long tap for the specified control. This is useful for touch devices where right-click is not available. This method can be called multiple times for the same control.

public static void EnableContextMenuOnLongTap(AbstractControl control, bool enable = true)

Parameters

control AbstractControl

The AbstractControl to enable context menu on long tap.

enable bool

true to enable context menu on long tap; otherwise, false.