How to set DiabledDates on MonthCalendar of DateTimeEditBox

Editors for WPF Forum

Posted 10 years ago by Jeff Wang
Avatar
Hi,
I am using WPF DateTimeEditBox which has a built in MonthCalendar control. MonthCalendar control has a property called DiabledDates, which I can disable a collection of dates. But DateTimeEditBox only allows us to customize MonthCalendar through its MonthCalendarStyle property, and DisabledDates is a read only property, so how can be able to disable a collection in its built in MonthCalendar? Is there anyway I can access the instance of built in Calendar fomr DateTimeEditBox?

Thanks,
Jeff

Comments (1)

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

You can actually replace the MonthCalendar using the DateTimeEditBox.DropDownContent/Template properties. If you are a WPF Studio customer, then you can download the default Styles which you could use as a template. If you are not a WPF Studio, customer please submit a request to our support email address asking for the styles.

We'll mark down a TODO item to make the disabled dates easier to set. Keep in mind though, that the DateTimeEditBox doesn't currently respect the DisabledDates of the underlying MonthCalendar. Which is something we may end up doing also.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.