Get a Jump on Navigation in Windows Phone with the LongListSelector: Listing 3.

Specifying a GroupItemTemplate to display each

 item in the jump list.
 <DataTemplate x:Key="GroupItemTemplate" >
   <Grid Height="99" Width="99" IsHitTestVisible="{Binding HasItems}" Margin="6" >
     <Border Background="{StaticResource PhoneAccentBrush}" 
      Visibility="{Binding HasItemsVisibility}"/ >
     <Border Background="{StaticResource PhoneBackgroundBrush}" 
      Visibility="{Binding HasNoItemsVisibility}" / >
     <Border Background="{StaticResource PhoneForegroundBrush}" 
      Visibility="{Binding HasNoItemsVisibility}" Opacity="0.2" / >
     <TextBlock Style="{StaticResource PhoneTextLargeStyle}" 
      Text="{Binding KeyName}" 
      VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="6,12,12,0" 
      FontFamily="Segoe WP Semibold" FontSize="48" / >
     <Border Background="{StaticResource PhoneBackgroundBrush}" 
      Visibility="{Binding HasNoItemsVisibility}" Opacity="0.5"/ >
   </Grid >

About the Author

Nick Randolph runs Built to Roam, a consulting company that specializes in training, mentoring and assisting other companies build mobile applications. With a heritage in rich client applications for both the desktop and a variety of mobile platforms, Nick currently presents, writes and educates on the Windows Phone platform.

comments powered by Disqus

Featured

Subscribe on YouTube