Currently, I have a listview with an "itemtapped" event for each item, which allows to navigate to other views depending on which item I tap. However, I want to "group" these and divide in sections (a listview containing listviews). I've been doing some digging on google and other forums, but can't really make this work. Thanks!
ListView.xaml.cs
public ObservableCollection listaA { get; set; }
public ListView()
{
InitializeComponent();
listaA= new ObservableCollection<Categorias>();
listaA.Add(new Categorias { Seccion = "1", Subseccion = "question1's detail", QuizType = Type.type1 });
listaA.Add(new Categorias { Seccion = "2", Subseccion = "question2's detail", QuizType = Type.type2 });
listaA.Add(new Categorias { Seccion = "3", Subseccion = "question3's detail", QuizType = Type.type3 });
listaA.Add(new Categorias { Seccion = "4", Subseccion = "question3's detail", QuizType = Type.type4 });
private async void MainListView_ItemTapped(object sender, ItemTappedEventArgs e)
{
Categorias model = (Categorias)e.Item;
if (model.QuizType == type1)
{
await Navigation.PushAsync(new TYPE1());
//....
ListView.xaml
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Padding="20" HorizontalOptions="Fill" >
<Label HorizontalOptions="Center" VerticalOptions="CenterAndExpand" TextColor="Black" FontSize="25" Text="{Binding Seccion}"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>