Skip to main content

RepositoryItemPopupBase.CreateDefaultButton() Method

Creates a default button when the editor is initialized.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public override void CreateDefaultButton()

Remarks

This method overrides the RepositoryItemButtonEdit.CreateDefaultButton method to create a button with the EditorButton.Kind property set to ButtonPredefines.Combo. By default, this button is used by editors to invoke their popup window. The button can be removed later or you can add another button and use it to invoke the editor’s popup window. Note: for this, you will need to use the RepositoryItemPopupBase.ActionButtonIndex property to specify which editor buttons will invoke the popup window.

See Also