1: <phoneNavigation:PhoneApplicationPage
2: x:Class="WindowsPhoneApp.MainPage"
3: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4: xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5: xmlns:phoneNavigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation"
6: xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7: xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8: mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
9: FontFamily="{StaticResource PhoneFontFamilyNormal}"
10: FontSize="{StaticResource PhoneFontSizeNormal}"
11: Foreground="{StaticResource PhoneForegroundBrush}">
12:
13:
14: <Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch"
15: Background="{StaticResource PhoneBackgroundBrush}">
16: <Grid.RowDefinitions>
17: <RowDefinition Height="Auto"/>
18: <RowDefinition Height="Auto"/>
19: <RowDefinition Height="*"/>
20: </Grid.RowDefinitions>
21:
22: <Grid x:Name="TitleGrid" Grid.Row="0">
23: <TextBlock Text="MY APPLICATION" Grid.Row="0" x:Name="textBlockPageTitle" Style="{StaticResource PhoneTextPageTitle1Style}"/>
24: <TextBlock Text="RSS Reader" Grid.Row="0" x:Name="textBlockListTitle" Style="{StaticResource PhoneTextPageTitle2Style}"/>
25: </Grid>
26: <StackPanel Grid.Row="1" Orientation="Horizontal">
27: <TextBlock HorizontalAlignment="Left" Margin="10,30,10,10" Text="Url :" VerticalAlignment="Top" />
28: <TextBox HorizontalAlignment="Left" Text="http://blogs.ugidotnet.org/sonny/Rss.aspx" Width="310"
29: Name="_tbUrl" VerticalAlignment="Top" HorizontalContentAlignment="Stretch"/>
30: <Button Content="Read" HorizontalAlignment="Left" Name="_bRead" VerticalAlignment="Top" Click="_bRead_Click" />
31: </StackPanel>
32: <ListBox Grid.Row="2" HorizontalAlignment="Left" HorizontalContentAlignment="Stretch"
33: Name="_lbRssItems" VerticalAlignment="Top">
34: <ListBox.ItemTemplate>
35: <DataTemplate>
36: <StackPanel Orientation="Horizontal" Height="132">
37: <StackPanel Width="390">
38: <TextBlock Text="{Binding Title}" Foreground="#FFC8AB14" FontSize="28" />
39: <TextBlock Text="{Binding Description}" Height="100" TextWrapping="Wrap" FontSize="24" />
40: <HyperlinkButton NavigateUri="{Binding Link}" Content="Apri Feed" />
41: </StackPanel>
42: </StackPanel>
43: </DataTemplate>
44: </ListBox.ItemTemplate>
45:
46: </ListBox>
47: </Grid>
48:
49: </phoneNavigation:PhoneApplicationPage>