Back to Devexpress

RepositoryItemPopupBase.CreateDefaultButton() Method

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitempopupbase-a95bc269.md

latest2.4 KB
Original Source

RepositoryItemPopupBase.CreateDefaultButton() Method

Creates a default button when the editor is initialized.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override void CreateDefaultButton()
vb
Public Overrides Sub 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

Buttons

Add(EditorButton)

Kind

ButtonPredefines

ActionButtonIndex

RepositoryItemPopupBase Class

RepositoryItemPopupBase Members

DevExpress.XtraEditors.Repository Namespace