Commit 165680ce by Javier Piris

Cambiado x:Name de ciertas vistas para resolver problemas de error

parent 6bcaab92
......@@ -17,7 +17,7 @@
xmlns:conv="clr-namespace:inutralia.Converters;assembly=inutralia"
xmlns:views="clr-namespace:inutralia.Views;assembly=inutralia"
x:Class="inutralia.Views.ArticleListView"
x:Name="ArticleListView"
x:Name="articleListView"
BackgroundColor="White"
Title="Articulos">
......
......@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
x:Class="inutralia.Views.ArticleItemTemplate"
x:Name="ArticleItemTemplate"
x:Name="articleItemTemplate"
BackgroundColor="White">
<Grid BackgroundColor="Black">
......
......@@ -27,7 +27,7 @@ namespace inutralia.Views
outerScrollView.Scrolled += OnScroll;
}
public void UnSelectedItem()
public void UnSelectedItem(object sender, EventArgs e)
{
((ListView)listTable).SelectedItem = null;
}
......
......@@ -4,7 +4,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms"
x:Class="inutralia.Views.RecipeItemTemplate"
x:Name="RecipeItemTemplate"
x:Name="recipeItemTemplate"
BackgroundColor="White">
<Grid BackgroundColor="Black">
......
......@@ -17,7 +17,7 @@
xmlns:conv="clr-namespace:inutralia.Converters;assembly=inutralia"
xmlns:views="clr-namespace:inutralia.Views;assembly=inutralia"
x:Class="inutralia.Views.RecipeListView"
x:Name="RecipeListView"
x:Name="recipeListView"
BackgroundColor="White"
Title="Recetas"
>
......
......@@ -2,7 +2,7 @@
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.Views.TrivialGameItemTemplate"
x:Name="TrivialGameItemTemplate"
x:Name="trivialGameItemTemplate"
BackgroundColor="White">
<Grid HorizontalOptions="Fill" VerticalOptions="Fill" Padding="8,8,8,8">
......
......@@ -35,7 +35,7 @@
Footer=""
ItemsSource="{Binding CurrentQuestion.Options}"
VerticalOptions="EndAndExpand"
ItemTapped="ItemTapped"
ItemTapped="TrivialItemTapped"
HasUnevenRows="True"
x:Name="listOptions">
......
......@@ -16,7 +16,7 @@ namespace inutralia.Views
InitializeComponent();
}
async Task ItemTapped(object sender, ItemTappedEventArgs e)
private async void TrivialItemTapped(object sender, ItemTappedEventArgs e)
{
// Obtiene el índice de la respuesta seleccionada
var index = ((ListView)sender).ItemsSource.Cast<object>().ToList().IndexOf(e.Item);
......
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