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.v21.1.dll


public bool ShowClearButton { get; set; }

Property Value

Type Description

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


The Clear button allows end-users to clear the selected date. Click the button to set the editor’s BaseEdit.EditValue property to BaseEdit.NullValue and close the drop-down calendar.

You can display the Clear button only when one of the following operation modes is active:

The following code sample displays the Clear button:

<Window ...
    <dxe:DateEdit ShowClearButton="True">
See Also