Skip to main content

RepositoryItemBlobBaseEdit.PopupButtonsCreating Event

Allows you to hide the default OK and Cancel buttons shown in popup menus of RepositoryItemBlobBaseEdit class descendants.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event PopupButtonsEventHandler PopupButtonsCreating

Event Data

The PopupButtonsCreating event's data class is DevExpress.XtraEditors.PopupButtonsEventArgs.

Remarks

Handle the PopupButtonsCreating event and specify the argument’s ShowButtons property to hide both OK and Cancel buttons. The CloseButtonStyle property in its turn allows you to hide the Cancel button only, or display its icon instead of the default caption.

private void memoExEdit1_PopupButtonsCreating(object sender, DevExpress.XtraEditors.PopupButtonsEventArgs e) {
    e.CloseButtonStyle = DevExpress.XtraEditors.Popup.BlobCloseButtonStyle.Caption;
    e.ShowButtons = false;
}
See Also