windowsforms-devexpress-dot-xtraeditors-dot-tokenedit-76b30c8c.md
Fires before the drop-down window is shown.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Events")]
public event EventHandler BeforePopup
<DXCategory("Events")>
Public Event BeforePopup As EventHandler
The BeforePopup event's data class is EventArgs.
The drop-down window can be opened if the following options are enabled:
You can also use the MaxTokenCount property to specify the maximum number of tokens that the user can select. If this value is reached, the drop-down window is not opened.
You can call the ShowPopup() method in code to open the drop-down window.
The editor raises the following events before and after the drop-down window is opened:
BeforePopup event.When a user selects a token, the drop-down window is closed. You can call the ClosePopup() method in code to close the drop-down window.
The editor raises the following events before and after the drop-down window is closed:
See Also