When setting the MouseDoubleClick directly to the RadCalendar control you are accessing the MouseDoubleClick of the entire control which includes the navigation buttons, borders etc.
In order to attach only to the buttons in the month view panel of the control you will need to:
- Directly from the CalendarButtonStyle and set a MouseLeftButtonDown event to the wrapper ff the buttons (in this case a Grid with x:Name="LayoutRoot").
- After that in the MouseLeftButtonDown use the MouseButtonEventArgs to determine the double click.
The easiest approach is with the use of Implicit Styles.
I created and attached a sample project with the previously mentioned approach. The example simply selects today when double click is detected. If you want to access the RadCalendar control from that event without the use of x:Name you will need to drill for it in the visual tree. Hope this is helpful.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>