<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Banquale.Views.Category.CategoryView">
    
    <VerticalStackLayout>

        <ListView ItemsSource="{Binding CategoryList}"
                  Grid.Row="2"
                  SelectionMode="None">

            <ListView.ItemTemplate>

                <DataTemplate>

                    <ViewCell>

                        <Grid
                            ColumnDefinitions="*, *, *"
                            Margin="20, 5, 20, 5"
                            HorizontalOptions="Fill">

                            <Grid.GestureRecognizers>
                                <TapGestureRecognizer
                                    Tapped="Category_Clicked"
                                    NumberOfTapsRequired="1" />

                            </Grid.GestureRecognizers>

                            <Label
                                Text="{Binding .}"
                                Grid.Column="1"
                                x:Name="categoryName"/>

                            

                        </Grid>

                    </ViewCell>

                </DataTemplate>

            </ListView.ItemTemplate>

        </ListView>

    </VerticalStackLayout>
</ContentView>
