Skip to main content

DateEdit.ShowClearButton Property

Gets or sets whether the dropdown calendar displays the Clear button. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public bool ShowClearButton { get; set; }

#Property Value

Type Description
Boolean

true if the dropdown calendar displays the Clear button; otherwise, false.

#Remarks

The Clear button allows end-users to clear the currently selected date. Clicking this button sets the editor's BaseEdit.EditValue property to BaseEdit.NullValue and closes the drop-down calendar.

The week numbers' visibility can be specified using the DateEdit.ShowWeekNumbers properties, respectively.

NOTE

If the BaseEdit.AllowNullInput property is set to false, the Clear button is not displayed within the dropdown calendar.

See Also