<phone:PhoneApplicationPage 
    x:Class="TFC_ClientApp.WorkoutPage"
    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"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot es la cuadrícula raíz donde se coloca todo el contenido de la página-->
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contiene el nombre de la aplicación y el título de la página-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="SESIÓN " Style="{StaticResource PhoneTextNormalStyle}" Foreground="#FF22BBF0" />
            <TextBlock x:Name="PageTitle"  Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="#FF22BBF0" />
        </StackPanel>

        <!--ContentPanel. Colocar aquí el contenido adicional-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ListBox x:Name="MainListBox" Margin="0,0,-12,0"  SelectionChanged="MainListBox_SelectionChanged" >
                <ListBox.ItemTemplate>
                    <DataTemplate >
                        <StackPanel Name="stackPanel" Margin="0,0,0,17" Width="432" Height="78">
                            <TextBlock Text="{Binding Exercice.Name}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" Foreground="#FF22BBF0" />
                            <TextBlock Text="Peso: " TextWrapping="Wrap" Margin="12,-6,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Gray"/>
                            <TextBlock Text="{Binding Load}" TextWrapping="Wrap" Margin="62,-26,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Gray"/>
                            <TextBlock Text="Repeticiones: " TextWrapping="Wrap" Margin="112,-28,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Gray"/>
                            <TextBlock Text="{Binding Repetitions}" TextWrapping="Wrap" Margin="232,-28,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Gray"/>
                            <TextBlock Text="Series: " TextWrapping="Wrap" Margin="272,-28,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Gray"/>
                            <TextBlock Text="{Binding Series}" TextWrapping="Wrap" Margin="332,-28,12,0" Style="{StaticResource PhoneTextSubtleStyle}" Foreground="Gray"/>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </Grid>
        
    </Grid>
 
    <!--Código de ejemplo que muestra el uso de ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Botón 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Botón 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Elemento de menú 1"/>
                <shell:ApplicationBarMenuItem Text="Elemento de menú 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
