Double click on the RadCalendar control could be easily achieved by using AddHandler method like following:
this.radCalendar.AddHandler(RadCalendar.MouseLeftButtonDownEvent, new MouseButtonEventHandler(MouseDoubleClick), true);
private void MouseDoubleClick(object sender, MouseButtonEventArgs e)
if (e.ClickCount == 2 && ((UIElement)e.OriginalSource).ParentOfType<
>() != null)
If you like to have a double click on each calendar button you could create custom DayTemplateSelector by inheriting from DataTemplateSelector where you should override the SelectTemplate method. The code inside this method should look like the following:
CalendarButtonContent content = item as CalendarButtonContent;
if (content.ButtonType == CalendarButtonType.Date || content.ButtonType == CalendarButtonType.TodayDate)
((CalendarButton)container).AddHandler(CalendarButton.MouseLeftButtonDownEvent, new MouseButtonEventHandler(MouseDoubleClick), true);
return base.SelectTemplate(item, container);
In the event handler you should cast the sender to CalendarButton in order to get the Text property of the button.
Would you please share with us what you are trying to achieve with so many check boxes? If you are trying to get multiple/extended selection you could set the SelectionMode property of the RadCalendar to "Extended". More about this could be found here.
Hope this helps.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>