Commit 396589a5 by Javier Piris

Creadas las vistas de QuestionListView y creada la funcionalidad de navegación…

Creadas las vistas de QuestionListView y creada la funcionalidad de navegación en el Xaml de Home View
parent ee656d4c
......@@ -171,6 +171,15 @@
<RowDefinition Height="1" />
<RowDefinition>
<RowDefinition.Height>
<OnIdiom x:TypeArguments="GridLength"
Phone="40"
Tablet="80"/>
</RowDefinition.Height>
</RowDefinition>
<RowDefinition Height="1" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
......@@ -329,7 +338,7 @@
</Label.GestureRecognizers>
</Label>
<!--text boletin saludable-->
<!--text lista de la compra-->
<Label Text="Lista de la Compra" Grid.Row="4" Grid.Column="1" YAlign="Center" FontSize="15" TextColor="{ DynamicResource ListViewItemTextColor }" >
<Label.FontSize>
<OnIdiom x:TypeArguments="x:Double"
......@@ -357,8 +366,64 @@
</Label.GestureRecognizers>
</Label>
<!---*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-5. item separator-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*_*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-* -->
<BoxView Grid.Row="5" HeightRequest="1" Grid.ColumnSpan="3" BackgroundColor="{ DynamicResource ListViewSeparatorColor }" HorizontalOptions="FillAndExpand" />
<!---*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-4. separator-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* -->
<BoxView Grid.Row="5" Grid.ColumnSpan="3" HeightRequest="1" BackgroundColor="{ DynamicResource ListViewSeparatorColor }" HorizontalOptions="FillAndExpand" />
<!---*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-5. item preguntas al especialista-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*_*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-* -->
<!--label clickable que englobal las 3 columnas del item del menú-->
<Label HorizontalOptions="Fill" VerticalOptions="Fill" Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3" >
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnTapGestureQuestion"
NumberOfTapsRequired="1" />
</Label.GestureRecognizers>
</Label>
<!--icon preguntas al especialista-->
<Label Text="{ x:Static local:IoniciconsFont.IosChatboxesOutline }" FontSize="30" Style="{StaticResource FontIcon}" Grid.Row="6" Grid.Column="0" XAlign="Center" YAlign="Center" TextColor="{ DynamicResource ListViewItemTextColor }">
<Label.FontSize>
<OnIdiom x:TypeArguments="x:Double"
Phone="30"
Tablet="50"/>
</Label.FontSize>
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnTapGestureQuestion"
NumberOfTapsRequired="1" />
</Label.GestureRecognizers>
</Label>
<!--text preguntas al especialista-->
<Label Text="Preguntas al especialista" Grid.Row="6" Grid.Column="1" YAlign="Center" FontSize="15" TextColor="{ DynamicResource ListViewItemTextColor }" >
<Label.FontSize>
<OnIdiom x:TypeArguments="x:Double"
Phone="15"
Tablet="25"/>
</Label.FontSize>
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnTapGestureQuestion"
NumberOfTapsRequired="1" />
</Label.GestureRecognizers>
</Label>
<!--icon ir-->
<Label Text="{ x:Static local:IoniciconsFont.IosArrowRight }" FontSize="30" Style="{StaticResource FontIcon}" Grid.Row="6" Grid.Column="2" XAlign="Center" YAlign="Center" TextColor="{ DynamicResource ListViewItemTextColor }">
<Label.FontSize>
<OnIdiom x:TypeArguments="x:Double"
Phone="30"
Tablet="50"/>
</Label.FontSize>
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnTapGestureQuestion"
NumberOfTapsRequired="1" />
</Label.GestureRecognizers>
</Label>
<!---*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-6. item separator-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*_*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-**-*-*-*-*-*-*-*-*-*-* -->
<BoxView Grid.Row="7" HeightRequest="1" Grid.ColumnSpan="3" BackgroundColor="{ DynamicResource ListViewSeparatorColor }" HorizontalOptions="FillAndExpand" />
</Grid>
</StackLayout>
</ContentPage>
using System;
using inutralia.Views.Question;
using System;
using Xamarin.Forms;
namespace inutralia.Views
......@@ -47,5 +48,9 @@ namespace inutralia.Views
RootPage?.Navigate<RecipeListView>();
}
void OnTapGestureQuestion(object sender, EventArgs args)
{
RootPage?.Navigate<QuestionListView>();
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.Views.Question.QuestionListView">
<ContentPage.Content>
<StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>
\ No newline at end of file
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace inutralia.Views.Question
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class QuestionListView : ContentPage
{
public QuestionListView()
{
InitializeComponent();
}
}
}
\ No newline at end of file
......@@ -57,6 +57,9 @@
<Compile Include="Views\Article\ItemList\ArticleItemTemplate.xaml.cs">
<DependentUpon>ArticleItemTemplate.xaml</DependentUpon>
</Compile>
<Compile Include="Views\Question\QuestionListView.xaml.cs">
<DependentUpon>QuestionListView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\Recipe\Filters\ModalFiltersRecipe.xaml.cs">
<DependentUpon>ModalFiltersRecipe.xaml</DependentUpon>
</Compile>
......@@ -262,7 +265,6 @@
<None Include="SampleData.json" />
<None Include="Gorilla.json" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<EmbeddedResource Include="Views\Recipe\ItemList\RecipeItemTemplate.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
......@@ -442,6 +444,12 @@
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\Question\QuestionListView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment