Posts

Showing posts from September, 2010

An easy Windows Phone 7 Photo Viewer using Pivot control #WP7 Tip

Image
Technorati Tags: WP7 , Windows Phone 7 , XAML , Pivot   Source Code Here is a small trick using the Pivot control for a Photo viewing experience. Imagine a Pivot control with out any header and the image as Pivot items. Yes it is that easy :). Since the Pivot supports for the Phone orientation you can enjoy the picture viewing both in Portrait and Landscape. I am giving step by step info if you are totally new to WP7 and XAML styling. And please note that the performance wont be that great if you have many images in the Pivot control. So you may need to do design that around or use some tricks to clean up the memory well. 1) Place a Pivot control and override the Style. What we wanted is to take out all the Header Templates and other extra puddings.         <Style x:Key="emptyPivot" TargetType="controls:Pivot">             <Setter Property="Template">                 <Setter.Value>                     <Co