| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <phone:PhoneApplicationPage
- x:Class="TwitterSearch.WindowsPhone.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
- xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d"
- FontFamily="{StaticResource PhoneFontFamilyNormal}"
- FontSize="{StaticResource PhoneFontSizeNormal}"
- Foreground="{StaticResource PhoneForegroundBrush}"
- SupportedOrientations="Portrait" Orientation="Portrait"
- shell:SystemTray.IsVisible="True">
- <!--LayoutRoot is the root grid where all page content is placed-->
- <Grid x:Name="LayoutRoot" Background="Transparent">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
- <TextBlock Text="Twitter Search" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,0"/>
- </StackPanel>
- <!--ContentPanel - place additional content here-->
- <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <TextBox x:Name="TextBoxSearch" Text="XamarinDevDays"/>
- <Button x:Name="ButtonSearch" Grid.Column="1" Content="Get Tweets" Click="ButtonSearch_Click"/>
-
- <ListBox x:Name="Tweets" Grid.Row="1" Grid.ColumnSpan="2" SelectionChanged="Tweets_SelectionChanged">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="88"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Image Width="88" Height="88" Source="{Binding Image}"/>
- <StackPanel Margin="5" Grid.Column="1">
- <TextBlock Text="{Binding ScreenName}"/>
- <TextBlock Text="{Binding Date}"/>
- <TextBlock Text="{Binding Text}" TextWrapping="Wrap"/>
- </StackPanel>
- </Grid>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- <!--Uncomment to see an alignment grid to help ensure your controls are
- aligned on common boundaries. The image has a top margin of -32px to
- account for the System Tray. Set this to 0 (or remove the margin altogether)
- if the System Tray is hidden.
- Before shipping remove this XAML and the image itself.-->
- <!--<Image Source="/Assets/AlignmentGrid.png" VerticalAlignment="Top" Height="800" Width="480" Margin="0,-32,0,0" Grid.Row="0" Grid.RowSpan="2" IsHitTestVisible="False" />-->
- <ProgressBar x:Name="Progress" IsIndeterminate="True" VerticalAlignment="Bottom" Visibility="Collapsed"/>
- </Grid>
- </phone:PhoneApplicationPage>
|