Thank you very much for your quick reply. I really managed to figure this out using DateTime.MaxValue and DateTime.MinValue and having two CalendarDateRanges in DatePicker.BlackoutDates tags. Sometimes you just need to ask a question to think about it differently :) Thanks again to the guys. Here is my xaml:
<DatePicker> <DatePicker.BlackoutDates> <CalendarDateRange Start="{x:Static app:CustomDateControl.FutureMinBlackoutDate}" End="{x:Static app:CustomDateControl.FutureMaxBlackoutDate}" /> <CalendarDateRange Start="{x:Static app:CustomDateControl.PastMinBlackoutDate}" End="{x:Static app:CustomDateControl.PastMaxBlackoutDate}" /> </DatePicker.BlackoutDates> </DatePicker>
source share