Tuesday, August 17, 2010

WPF calendar control for touch screen application

If you are looking for WPF calendar control, you will get many over the internet. However, none of the calendar control is friendly for touch screen application. If you use any third party touch application framework such as “breezmultitouch”, you will not be able to get all the complex event of WPF built-in controls. For this reason, WPF built-in calendar control is not suitable for touch screen application.

The following screen shot shows a calendar control which is totally touches friendly. Its basic behavior is similar to Windows OS’s calendar control. All features of calendar control are managed by Button and RadionButton control. Both of these controls are very friendly for touch screen application.


There is nothing complicated in the implementation of the calendar control. Most of the implementation is easy to read. You can easily use this control by just referencing the WpfCustomControlCalendar project or you can copy the source of the control to any of your own project.

You can download the complete source code from here.

Hope this Help!


1 comment:

Scott's Blog said...

Hi:
I am trying this custom calendar control.
I try to get the SelectedDate when PreviewMouseUp event occurrs, but the date which is selected is always today.

With regards,

Scott