<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:app="clr-namespace:inutralia;assembly=inutralia"
             xmlns:artina="clr-namespace:UXDivers.Artina.Shared;assembly=UXDivers.Artina.Shared"
             x:Class="inutralia.Views.CustomMenuView"
             x:Name="customDetailView" 
             Title="Mi menú personalizado">

    <StackLayout VerticalOptions="FillAndExpand">

        <ActivityIndicator HorizontalOptions="FillAndExpand" IsRunning="{Binding IsBusy}" IsVisible="{Binding IsBusy}" />
        <Label Text="Danos dos segundos estámos cargando tu menú personalizado..."
               VerticalOptions="CenterAndExpand"
               VerticalTextAlignment="Center"
               HorizontalTextAlignment="Center"
               TextColor="{DynamicResource AccentColor}"
               IsVisible="{Binding IsBusy}"/>


        <!-- MAIN CONTAINER -->
        <Grid IsVisible="{Binding IsNotBusy}" ColumnSpacing="0" RowSpacing="10" Padding="20,20,20,20" HorizontalOptions="Fill" VerticalOptions="FillAndExpand">

            <Grid.RowDefinitions>
                <RowDefinition>
                    <RowDefinition.Height>
                        <OnIdiom x:TypeArguments="GridLength"
                                 Phone="50"
                                 Tablet="80"/>
                    </RowDefinition.Height>
                </RowDefinition>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition>
                    <RowDefinition.Height>
                        <OnIdiom x:TypeArguments="GridLength"
                                 Phone="50"
                                 Tablet="80"/>
                    </RowDefinition.Height>
                </RowDefinition>
            </Grid.RowDefinitions>

            <!-- Botones de acceso a cada día, se crean directamente en el código al crear la página -->
            <Grid x:Name="buttonList" HorizontalOptions="FillAndExpand" VerticalOptions="Fill" ColumnSpacing="0" Grid.Row="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
            </Grid>

            <!-- El menú del día seleccionado -->
            <!--***************************** COMIDA ******************************-->
            <Frame Grid.Row="1" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Padding="0,0,0,14">
                <Grid x:Name="menuGrid" RowSpacing="10" ColumnSpacing="10" VerticalOptions="FillAndExpand" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>

                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>

                    <!-- Titulo Comida -->
                    <Label Text="COMIDA" 
                       Grid.Row="0" 
                       Grid.Column="0"
                       Grid.ColumnSpan="4"
                       HorizontalTextAlignment="Center"                       
                       VerticalOptions="CenterAndExpand"
                       VerticalTextAlignment="Center"
                       TextColor="#ffffffff"
                       BackgroundColor="{DynamicResource ComplementColor}">

                        <Label.HeightRequest>
                            <OnIdiom x:TypeArguments="x:Double">
                                <OnIdiom.Phone>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="30"
                                        Android="30"/>
                                </OnIdiom.Phone>

                                <OnIdiom.Tablet>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="60"
                                        Android="60"/>
                                </OnIdiom.Tablet>
                            </OnIdiom>
                        </Label.HeightRequest>

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double">
                                <OnIdiom.Phone>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="18"
                                        Android="18"/>
                                </OnIdiom.Phone>

                                <OnIdiom.Tablet>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="24"
                                        Android="24"/>
                                </OnIdiom.Tablet>
                            </OnIdiom>
                        </Label.FontSize>
                    </Label>

                    <!-- Primero Comida -->

                    <Label Text="1º"                     
                     Grid.Row="1"
                     Grid.Column="0"
                     Grid.RowSpan="2"
                     VerticalOptions="Center"
                     Margin="10,0,0,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="18"
                               Tablet="25"/>
                        </Label.FontSize>
                    </Label>

                    <!-- Primero Comida - Opc 1 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="1"
                       Grid.Column="1"
                       Grid.ColumnSpan="3">

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.LunchFirst[0]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Switch Grid.Row="1"
                        Grid.Column="1"
                        IsToggled="{Binding IsLunchFirstOption1}"
                        VerticalOptions="Center"/>

                    <Label  Text="{Binding CurrentDay.LunchFirst[0].ShortName}"
                         Grid.Row="1"
                         Grid.Column="2"
                         VerticalOptions="Center"
                         HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                              Command="{Binding ShowRecipeCommand}"
                              CommandParameter="{Binding CurrentDay.LunchFirst[0]}"
                              NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="1"
                         Grid.Column="3"
                         HorizontalOptions="Center"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="20"
                               Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.LunchFirst[0]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <!-- Primero Comida - Opc 2 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="2"
                       Grid.Column="1"
                       Grid.ColumnSpan="3" >

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.LunchFirst[1]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>

                    </Label>

                    <Switch Grid.Row="2"
                        Grid.Column="1"
                        IsToggled="{Binding IsLunchFirstOption2}"
                        VerticalOptions="Center"/>

                    <Label Text="{Binding CurrentDay.LunchFirst[1].ShortName}"
                         Grid.Row="2"
                         Grid.Column="2"
                         VerticalOptions="Center"
                         HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                              Command="{Binding ShowRecipeCommand}"
                              CommandParameter="{Binding CurrentDay.LunchFirst[1]}"
                              NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="2"
                         Grid.Column="3"
                         HorizontalOptions="Center"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                                   Phone="20"
                                   Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                              Command="{Binding ShowRecipeCommand}"
                              CommandParameter="{Binding CurrentDay.LunchFirst[1]}"
                              NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <!-- Segundo Comida -->

                    <Label Text="2º"
                     Grid.Row="3"
                     Grid.Column="0"
                     Grid.RowSpan="2"
                     VerticalOptions="Center"
                     Margin="10,0,0,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                           Phone="15"
                           Tablet="25"/>
                        </Label.FontSize>
                    </Label>

                    <!-- Segundo Comida - Opc 1 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="3"
                       Grid.Column="1"
                       Grid.ColumnSpan="3">

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.LunchSecond[0]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{Binding CurrentDay.LunchSecond[0].ShortName}"
                         Grid.Row="3"
                         Grid.Column="2"
                         VerticalOptions="Center"
                         HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.LunchSecond[0]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Switch Grid.Row="3"
                        Grid.Column="1"
                        IsToggled="{Binding IsLunchSecondOption1}"
                        VerticalOptions="Center"/>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="3"
                         Grid.Column="3"
                         HorizontalOptions="CenterAndExpand"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="20"
                               Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.LunchSecond[0]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <!-- Segundo Comida - Opc 2 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="4"
                       Grid.Column="1"
                       Grid.ColumnSpan="3">

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.LunchSecond[1]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>

                    </Label>

                    <Switch Grid.Row="4"
                        Grid.Column="1"
                        IsToggled="{Binding IsLunchSecondOption2}"
                        VerticalOptions="Center"/>

                    <Label Text="{Binding CurrentDay.LunchSecond[1].ShortName}"
                         Grid.Row="4"
                         Grid.Column="2"
                         VerticalOptions="Center"
                       HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.LunchSecond[1]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="4"
                         Grid.Column="3"
                         HorizontalOptions="Center"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="20"
                               Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.LunchSecond[1]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>
                </Grid>
            </Frame>

            <!--***************************** FIN COMIDA ******************************-->

            <!--******************************** CENA *********************************-->

            <!-- RECUADRO FRAME -->

            <Frame Grid.Row="2" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Padding="0,0,0,14">

                <Grid x:Name="menuDinner" RowSpacing="10" ColumnSpacing="10" VerticalOptions="FillAndExpand" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>

                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>

                    <!-- Título Cena -->

                    <Label Text="CENA" 
                       Grid.Row="0" 
                       Grid.Column="0"
                       Grid.ColumnSpan="4"
                       HorizontalTextAlignment="Center"
                       VerticalTextAlignment="Center"
                       VerticalOptions="CenterAndExpand"
                       TextColor="#ffffffff"
                       BackgroundColor="{DynamicResource ComplementColor}">

                        <Label.HeightRequest>
                            <OnIdiom x:TypeArguments="x:Double">
                                <OnIdiom.Phone>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="30"
                                        Android="30"/>
                                </OnIdiom.Phone>

                                <OnIdiom.Tablet>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="60"
                                        Android="60"/>
                                </OnIdiom.Tablet>
                            </OnIdiom>
                        </Label.HeightRequest>

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double">
                                <OnIdiom.Phone>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="18"
                                        Android="18"/>
                                </OnIdiom.Phone>

                                <OnIdiom.Tablet>
                                    <OnPlatform x:TypeArguments="x:Double" 
                                        iOS="24"
                                        Android="24"/>
                                </OnIdiom.Tablet>
                            </OnIdiom>
                        </Label.FontSize>
                    </Label>

                    <!-- Primero Cena -->

                    <Label Text="1º"
                     Grid.Row="1"
                     Grid.Column="0"
                     Grid.RowSpan="2"
                     VerticalOptions="Center"
                     Margin="10,0,0,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                           Phone="15"
                           Tablet="25"/>
                        </Label.FontSize>
                    </Label>

                    <!-- Primero Cena - Opc 1 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="1"
                       Grid.Column="1"
                       Grid.ColumnSpan="3">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                             Phone="18"
                             Tablet="20"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.DinnerFirst[0]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Switch Grid.Row="1"
                        Grid.Column="1"
                        IsToggled="{Binding IsDinnerFirstOption1}"
                        VerticalOptions="Center"/>

                    <Label Text="{Binding CurrentDay.DinnerFirst[0].ShortName}"
                         Grid.Row="1"
                         Grid.Column="2"
                         VerticalOptions="Center" 
                       HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerFirst[0]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="1"
                         Grid.Column="3"
                         HorizontalOptions="Center"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="20"
                               Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerFirst[0]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <!-- Primero Cena - Opc 2 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="2"
                       Grid.Column="1"
                       Grid.ColumnSpan="3">

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.DinnerFirst[1]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Switch Grid.Row="2"
                        Grid.Column="1"
                        IsToggled="{Binding IsDinnerFirstOption2}"
                        VerticalOptions="Center"/>

                    <Label Text="{Binding CurrentDay.DinnerFirst[1].ShortName}"
                         Grid.Row="2"
                         Grid.Column="2"
                         VerticalOptions="Center"
                         HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerFirst[1]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="2"
                         Grid.Column="3"
                         HorizontalOptions="Center"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="20"
                               Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerFirst[1]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <!-- Segundo Cena -->

                    <Label Text="2º"
                     Grid.Row="3"
                     Grid.Column="0"
                     Grid.RowSpan="2"
                     VerticalOptions="Center"
                     Margin="10,0,0,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                           Phone="15"
                           Tablet="25"/>
                        </Label.FontSize>
                    </Label>

                    <!-- Segundo Cena - Opc 1 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="3"
                       Grid.Column="1"
                       Grid.ColumnSpan="3">

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.DinnerSecond[0]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Switch Grid.Row="3"
                        Grid.Column="1"
                        IsToggled="{Binding IsDinnerSecondOption1}"
                        VerticalOptions="Center"/>

                    <Label Text="{Binding CurrentDay.DinnerSecond[0].ShortName}"
                         Grid.Row="3"
                         Grid.Column="2"
                         VerticalOptions="Center"
                         HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerSecond[0]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="3"
                         Grid.Column="3"
                         HorizontalOptions="Center"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="20"
                               Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerSecond[0]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <!-- Segundo Cena - Opc 2 -->

                    <Label HorizontalOptions="Fill"
                       VerticalOptions="Fill"
                       Grid.Row="4"
                       Grid.Column="1"
                       Grid.ColumnSpan="3">

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                            Command="{Binding ShowRecipeCommand}"
                            CommandParameter="{Binding CurrentDay.DinnerSecond[1]}"
                            NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Switch Grid.Row="4"
                        Grid.Column="1"
                        IsToggled="{Binding IsDinnerSecondOption2}"
                        VerticalOptions="Center"/>

                    <Label Text="{Binding CurrentDay.DinnerSecond[1].ShortName}"
                         Grid.Row="4"
                         Grid.Column="2"
                         VerticalOptions="Center"
                         HorizontalOptions="CenterAndExpand">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="12"
                               Tablet="25"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerSecond[1]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>

                    <Label Text="{ x:Static app:IoniciconsFont.Search }"
                         Style="{StaticResource FontIcon}"
                         Grid.Row="4"
                         Grid.Column="3"
                         HorizontalOptions="Center"
                         VerticalOptions="Center"
                         Margin="3,0,10,0">

                        <Label.FontSize>
                            <OnIdiom x:TypeArguments="x:Double"
                               Phone="20"
                               Tablet="40"/>
                        </Label.FontSize>

                        <Label.GestureRecognizers>
                            <TapGestureRecognizer
                          Command="{Binding ShowRecipeCommand}"
                          CommandParameter="{Binding CurrentDay.DinnerSecond[1]}"
                          NumberOfTapsRequired="1" />
                        </Label.GestureRecognizers>
                    </Label>
                </Grid>
            </Frame>

            <!-- Recomendaciones genéricas -->

            <artina:Button	Command="{Binding ShowRecomendationCommand}"
							Style="{DynamicResource PrimaryActionButtonStyle}"
							Grid.Row = "3"
							Text="RESTO   DEL   DIA"
                            VerticalOptions="CenterAndExpand"
							HeightRequest="{artina:OnOrientationDouble
						                    LandscapePhone=20,
						                    LandscapeTablet=30 }"
							HorizontalOptions="FillAndExpand"
                            FontSize="{artina:OnOrientationDouble 
                                       PortraitPhone=18,
                                       LandscapePhone=18,
                                       PortraitTablet=30,
                                       LandscapeTablet=30 }"/>
        </Grid>

        <Label IsVisible="{Binding NoMenuPanel}"
               VerticalOptions="CenterAndExpand"
               HorizontalOptions="FillAndExpand"
               HorizontalTextAlignment="Center"
               Text="No hay datos de menú personalizado. ¿Quizá olvidaste rellenar tu perfil?" />
    </StackLayout>
</ContentPage>