Custom Image in Windows Phone Panorama
By default a windows Phone Panorama can only accept a title. What if we want an image instead? To add the image, we have to define the TitleTemplate attribute.
1 2 3 4 5 6 7 8 9 |
<Grid x:Name="LayoutRoot"> <controls:Panorama x:Name="panorama"> <controls:Panorama.TitleTemplate> <DataTemplate> <!--<TextBlock Text="Families" FontSize="90" Margin="0,50,0,0" />--> <Image HorizontalAlignment="Right" Margin="0,80,200,0" Width="100" Height="100" Source="/ApplicationIcon.png"/> </DataTemplate> </controls:Panorama.TitleTemplate> ... |
Notes that we added...