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!


Monday, August 2, 2010

PhotoViewer Application in WPF

For one of my touch applications, I was looking for a photo viewer control. After googling sometime, I got a few photo viewers. However, none of the viewer seems good for touch application. Eventually, I tried to develop a photo viewer control by myself. The control will work with non-touch application too. I am uploading the non-touch version here.

The photo viewer control will load a collection of photos as a thumbnail and will display a photo depending on the selection from thumbnail. The user can navigate in collection by two buttons. The following image shows the appearance of the photo viewer control.



The development of the control is plain and simple. You can use this control by minimum effort. You need to set the path of the photo directory in the load event of PhotoStack class.

You can download the source code from here.

Hope this help!