wpf-devexpress-dot-xpf-dot-editors-dot-dateedit-8e1a0b0d.md
Gets or sets whether the dropdown calendar displays the Clear button. This is a dependency property.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public bool ShowClearButton { get; set; }
Public Property ShowClearButton As Boolean
| Type | Description |
|---|---|
| Boolean |
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 ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<Grid>
<dxe:DateEdit ShowClearButton="True">
<dxe:DateEdit.StyleSettings>
<dxe:DateEditCalendarStyleSettings/>
</dxe:DateEdit.StyleSettings>
</dxe:DateEdit>
</Grid>
</Window>
See Also