SearchPage.xaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.SearchPage"
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  15. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  16. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  17. FontSize="{StaticResource PhoneFontSizeNormal}"
  18. Foreground="{StaticResource PhoneForegroundBrush}"
  19. SupportedOrientations="Portrait" Orientation="Portrait"
  20. mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
  21. shell:SystemTray.IsVisible="False">
  22. <Grid x:Name="LayoutRoot" Background="White">
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="Auto"/>
  25. <RowDefinition Height="*"/>
  26. </Grid.RowDefinitions>
  27. <TextBox Height="72" HorizontalAlignment="Left"
  28. Name="SearchBox" Text=""
  29. VerticalAlignment="Top" Width="460"
  30. TextChanged="SearchTextChanged" Margin="11,0,0,0"
  31. Foreground="Black" BorderBrush="Black" />
  32. <ListBox Grid.Row="1" Margin="12,0,12,0"
  33. HorizontalAlignment="Left" Name="ItemListBox"
  34. VerticalAlignment="Top"
  35. SelectionChanged="ItemSelectionChanged">
  36. <ListBox.ItemTemplate>
  37. <DataTemplate>
  38. <StackPanel Margin="13,0,0,16">
  39. <TextBlock Text="{Binding Title}" TextWrapping="Wrap" Margin="0, 0, 0, 0" Style="{StaticResource PhoneTextLargeStyle}" Foreground="Black" />
  40. <TextBlock Text="{Binding Datestamp}" TextWrapping="Wrap" Margin="8, 2, 0, 0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Black" />
  41. </StackPanel>
  42. </DataTemplate>
  43. </ListBox.ItemTemplate>
  44. </ListBox>
  45. </Grid>
  46. </phone:PhoneApplicationPage>