<?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:extensions="clr-namespace:PlantBox.Client.Extensions"
             x:Class="PlantBox.Client.Forms.MenuPage">
    <ContentPage.Content>
        <StackLayout>
            <Image HorizontalOptions="FillAndExpand"
                   Source="{extensions:ImageResource Banner.png}" />
            <ListView x:Name="items"
                      x:FieldModifier="Public"
                      VerticalOptions="FillAndExpand"
                      HorizontalOptions="FillAndExpand"
                      SelectionMode="None">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ViewCell>
                            <StackLayout Orientation="Horizontal"
                                         HorizontalOptions="FillAndExpand"
                                         VerticalOptions="CenterAndExpand"
                                         Margin="15, 0, 0, 0">
                                <Image HeightRequest="32"
                                       WidthRequest="32"
                                       Source="{Binding Image}" />
                                <Label HorizontalOptions="FillAndExpand"
                                       VerticalOptions="CenterAndExpand"
                                       Margin="5, 0, 0, 0"
                                       Style="{DynamicResource SubtitleStyle}"
                                       Text="{Binding Title}" />
                            </StackLayout>
                        </ViewCell>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>