I setup a calender to only display months using the great examples given by Telerik at http://www.telerik.com/help/silverlight/radcalendar-selectors.html
my calendar only used Mondays.
The problem is when you jump out of the month view into the year view, every month that does not start on a Monday is disabled! Is there a fix for this? Maybe a work around?
my calendar only used Mondays.
public
class
WeekendingSelector : DataTemplateSelector
{
public
override
DataTemplate SelectTemplate(
object
item, DependencyObject container)
{
CalendarButtonContent content = item
as
CalendarButtonContent;
if
(content !=
null
)
{
if
(content.Date.DayOfWeek != DayOfWeek.Monday)
{
content.IsEnabled =
false
;
}
}
return
DefaultTemplate;
}
public
DataTemplate DefaultTemplate {
get
;
set
; }
}
The problem is when you jump out of the month view into the year view, every month that does not start on a Monday is disabled! Is there a fix for this? Maybe a work around?