Skip to main content

RepositoryItemPopupGalleryEdit.ShowButtons Property

Gets or sets whether the OK and Cancel buttons are displayed in the PopupGalleryEdit popup window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public bool ShowButtons { get; set; }

Property Value

Type Default Description
Boolean true

true if the OK and Cancel buttons are displayed; otherwise, false.

Remarks

The OK and Cancel buttons that are displayed in the PopupGalleryEdit popup window allow an end-user to save and discard the current selection. Use the ShowButtons property to specify the visibility of these buttons.

It is recommended to display these buttons if multiple item selection is enabled. If the ShowButtons property is set to true, you can also hide the Cancel button with the RepositoryItemPopupGalleryEdit.ShowPopupCloseButton property.

If the ShowButtons property is set to false, you can allow an end-user to save the current selection on a gallery item click. To accomplish this, set the PopupGalleryEditGallery.CloseOnItemClick property to true. This behavior is not recommended in multiple item selection mode.

See Also