FeedPivot.xaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--
  2. Copyright © 2011-2012 Nokia Corporation. All rights reserved.
  3. Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
  4. Other product and company names mentioned herein may be trademarks
  5. or trade names of their respective owners.
  6. See LICENSE.TXT for license information.
  7. -->
  8. <phone:PhoneApplicationPage
  9. x:Class="RSSReader.Views.FeedPivot"
  10. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  11. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  12. xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
  13. xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
  14. xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
  15. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  16. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  17. xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
  18. mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="728"
  19. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  20. FontSize="{StaticResource PhoneFontSizeNormal}"
  21. Foreground="Black"
  22. Background="White"
  23. SupportedOrientations="Portrait" Orientation="Portrait"
  24. shell:SystemTray.IsVisible="False">
  25. <phone:PhoneApplicationPage.Resources>
  26. <DataTemplate x:Key="RSSItemTemplate">
  27. <StackPanel Margin="0,0,12,16">
  28. <TextBlock Text="{Binding Title}" TextWrapping="Wrap" Margin="0, 0, 0, 0" Style="{StaticResource PhoneTextLargeStyle}" Foreground="Black" />
  29. <TextBlock Text="{Binding Datestamp}" TextWrapping="Wrap" Margin="8, 2, 0, 0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Black" />
  30. </StackPanel>
  31. </DataTemplate>
  32. </phone:PhoneApplicationPage.Resources>
  33. <Grid x:Name="LayoutRoot" Background="White">
  34. <controls:Pivot Title="RSS READER" x:Name="RSSItemsPivot" SelectionChanged="FeedSelectionChanged" Foreground="Black">
  35. </controls:Pivot>
  36. </Grid>
  37. <phone:PhoneApplicationPage.ApplicationBar>
  38. <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="White" ForegroundColor="Black">
  39. <shell:ApplicationBarIconButton x:Name="appbar_refresh" IconUri="/Resources/appbar.refresh.rest.png" Text="Refresh" Click="AppBarRefresh" />
  40. <shell:ApplicationBarIconButton x:Name="appbar_search" IconUri="/Resources/appbar.feature.search.rest.png" Text="Filter" Click="AppBarSearch" />
  41. </shell:ApplicationBar>
  42. </phone:PhoneApplicationPage.ApplicationBar>
  43. </phone:PhoneApplicationPage>