RepositoryItemPopupBase.BeforePopup Event
Fires when the editor’s pop-up is about to be displayed.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The BeforePopup event's data class is EventArgs.
Remarks
The BeforePopup event fires before the editor’s pop-up is displayed and allows you to customize the pop-up form. The code snippet below shows how to customize whether time editing is enabled in the DateEdit control pop-up.
private void dateEdit1_BeforePopup(object sender, EventArgs e) {
(((DateEdit)sender).GetPopupEditForm() as PopupDateEditForm).Calendar.CalendarTimeEditing = DevExpress.Utils.DefaultBoolean.True;
}
The editor’s PopupBaseEdit.BeforePopup event is equivalent to the current BeforePopup event.
See Also