Clear Button in MonthCalendar control

Editors for WPF Forum

Posted 10 years ago by David Mullin
Avatar
The MonthCalendar control used by the DateTimePicker control had a Clear Button, and the DateTimePicker control had some properties for controlling this. The DateTimeEditBox control and associated MonthCalendar control don't seem to have anything like this. Am I missing something?

Also, would it be possible to get the latest Styles and Templates?

David Mullin

Comments (7)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi David,

The DateTimeEditBox includes a CheckBox that can be used to clear the current date. You can show this by setting CheckBoxVisibility equal to Visible.

Do you think it would be necessary to still offer the Clear button as an option on the MonthCalendar?


Actipro Software Support

Posted 10 years ago by David Mullin
Avatar
We dont' find the checkbox to be as visually appealing - so, yeah, it would be nice to have the Clear button.
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi David,

With this version of the MonthCalendar, we replicated the look of the WinForms MonthCalendar control. This means that the "today button" looks more like a hyperlink (since it serves a dual purpose of display today's date and allowing quick navigation to today).

What are your thoughts on how a Clear button should look? Before it was just a normal WPF button, but that wouldn't really fit the look/feel of the new MonthCalendar.


Actipro Software Support

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
One option, although inconsistent, would be to change the style of the "today" button via a trigger back to a normal looking button when the Clear button was visible so that they look the same. This would make it look more like the older Shared Library's buttons.


Actipro Software Support

Posted 10 years ago by David Mullin
Avatar
How about styling the Clear button like another hyperlink, only in the bottom right-hand corner? Then, it would be stylistically consistent.
Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi David,

We've added a clear button to the new MonthCalendar, which is displayed as a hyperlink in the lower right corner, and an associated property to show/hide it. The look/feel can easily be changed using a custom DataTemplate, which is shown in a new QuickStart.


Actipro Software Support

Posted 10 years ago by David Mullin
Avatar
That's awesome. Thanks!
The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.