windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtokenedit-15937927.md
Fires before the drop-down window is shown.
Namespace : DevExpress.XtraEditors.Repository
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 — fires after the drop-down list is populated with tokens and allows you to customize the drop-down window that is about to be displayed. Use the editor’s GetPopupEditForm() method to get the drop-down window. This event is equivalent to the editor’s 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