WeatherInformation WP8: MapPage improvements
[CSharpForFun/.git] / WindowsPhone / WP8 / WeatherInformation / WeatherInformation / MapPage.xaml
1 <phone:PhoneApplicationPage
2     x:Class="WeatherInformation.MapPage"
3     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5     xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
6     xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
7     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
8     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9     xmlns:maps="clr-namespace:Microsoft.Phone.Maps.Controls;assembly=Microsoft.Phone.Maps"
10     FontFamily="{StaticResource PhoneFontFamilyNormal}"
11     FontSize="{StaticResource PhoneFontSizeNormal}"
12     Foreground="{StaticResource PhoneForegroundBrush}"
13     SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
14     mc:Ignorable="d"
15     shell:SystemTray.IsVisible="True">
16
17     <!--LayoutRoot es la cuadrícula raíz donde se coloca todo el contenido de la página-->
18     <Grid x:Name="LayoutRoot" Background="Transparent">
19         <Grid.RowDefinitions>
20             <RowDefinition Height="Auto"/>
21             <RowDefinition/>
22             <RowDefinition Height="Auto"/>
23             <RowDefinition Height="Auto"/>
24         </Grid.RowDefinitions>
25
26         <!--TitlePanel contiene el nombre de la aplicación y el título de la página-->
27         <StackPanel Grid.Row="0" Margin="12,17,0,28">
28             <TextBlock Text="{Binding LocalizedResources.LocationPageTitle, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}"/>
29             <Grid>
30                 <Grid.ColumnDefinitions>
31                     <ColumnDefinition Width="42*"/>
32                     <ColumnDefinition Width="41*"/>
33                     <ColumnDefinition Width="151*"/>
34                 </Grid.ColumnDefinitions>
35                 <TextBlock x:Name="LocationTextCity" Text="{Binding LocalizedResources.DefaultCity, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle2Style}" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.ColumnSpan="3"/>
36                 <TextBlock x:Name="LocationTextCountry" Text="{Binding LocalizedResources.DefaultCountry, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Margin="0,-7,0,0" Style="{StaticResource PhoneTextTitle2Style}" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="2"/>
37             </Grid>
38             <StackPanel Orientation="Horizontal">
39             </StackPanel>
40         </StackPanel>
41
42         <!--ContentPanel. Colocar aquí el contenido adicional-->
43         <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
44             <maps:Map x:Name="mapWeatherInformation" Grid.Row="1" Tap="mapWeatherInformation_Tap"/>
45         </Grid>
46         <Grid Grid.Row="2">
47             <ProgressBar x:Name="ProgressBarRemoteData" IsIndeterminate="True" LargeChange="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Height="80" FontSize="20" FlowDirection="LeftToRight" UseLayoutRounding="True" IsEnabled="False" />
48             <Button x:Name="SaveLocationButton"  Content="{Binding LocalizedResources.MapPageSaveLocationButton, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Click="SaveLocationButton_Click" HorizontalAlignment="Left" VerticalAlignment="Center"/>
49             <Button x:Name="GetCurrentLocationButton" HorizontalAlignment="Right" VerticalAlignment="Center" Content="{Binding LocalizedResources.MapPageGetCurrentLocationButton, Mode=OneWay, Source={StaticResource LocalizedStrings}}" Click="GetCurrentLocationButton_Click"/>
50         </Grid>
51         <Grid Grid.Row="3">
52             <!-- 
53             <Button x:Name="ZoomInButton" Click="ZoomInButton_Click" HorizontalAlignment="Left" VerticalAlignment="Center" Content="Zoom +"/>
54             <Button x:Name="ZoomOutButton" Click="ZoomOutButton_Click" HorizontalAlignment="Right" VerticalAlignment="Center" Content="Zoom -"/> 
55         -->
56         </Grid>
57     </Grid>
58
59 </phone:PhoneApplicationPage>