Back to Devexpress

RepositoryItemPopupBase.Popup Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupbase-6f8abefe.md

latest3.2 KB
Original Source

RepositoryItemPopupBase.Popup Event

Occurs after the editor’s popup window has been opened.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public virtual event EventHandler Popup
vb
<DXCategory("Events")>
Public Overridable Event Popup As EventHandler

Event Data

The Popup event's data class is EventArgs.

Remarks

Use the Popup event to implement specific behavior after the popup window has been opened.

Do not invoke any message boxes while handling the Popup event.

To prevent the popup window from being opened, the RepositoryItemPopupBase.QueryPopUp event can be handled.

The current Popup event is equivalent to the editor’s PopupBaseEdit.Popup event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Popup event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-gridlookupedit-multiple-item-selection/CS/Form1.cs#L23

csharp
ri.EditValueChanged += ri_EditValueChanged;
ri.Popup += ri_Popup;
ri.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard;

winforms-gridlookupedit-multiple-item-selection/VB/Form1.vb#L20

vb
AddHandler ri.EditValueChanged, AddressOf ri_EditValueChanged
AddHandler ri.Popup, AddressOf ri_Popup
ri.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard

See Also

QueryPopUp

BeforePopup

RepositoryItemPopupBase Class

RepositoryItemPopupBase Members

DevExpress.XtraEditors.Repository Namespace