Skip to main content

RepositoryItemCalcEdit.ShowCloseButton Property

Gets or sets the value indicating whether the close button should be displayed in the dropdown window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool ShowCloseButton { get; set; }

Property Value

Type Default Description
Boolean false

true if the close button is displayed in the dropdown; otherwise false.

Remarks

The ShowCloseButton property allows you to specify whether the close button is displayed in the left bottom corner of the dropdown window. The following image shows a calc editor with the close button drawn using the XP theme.

CalcEdit_ShowCloseButton

When the end-user clicks this button, the dropdown window is closed without accepting the entered value.

This is similar to calling the PopupBaseEdit.CancelPopup method.

After clicking the close button the following events occur:

See Also