Skip to main content
A newer version of this page is available. .

RepositoryItemPopupBase.CreateDefaultButton() Method

Creates a default button when the editor is initialized.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateDefaultButton() method.

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.

See Also