<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Banquale.Views.MessageListPage"
             Title="MessageListPage"
             Shell.NavBarIsVisible="True">

    <VerticalStackLayout>

        <!--<Label
            Text="rzklpkrz,e"
            Grid.Column="1"
            VerticalOptions="Center"
            Margin="10, 0, 0, 0"
            BackgroundColor="Red"/>-->

        <Label Text="{Binding Consultant.MessagesList[0].Subject}" />


        <ListView ItemsSource="{Binding Consultant.MessagesList}"
                  SelectionMode="None"
                  BackgroundColor="Red"
                  RowHeight="50">

            <ListView.ItemTemplate>

                <DataTemplate>

                    <TextCell Text="{Binding Subject}" />

                </DataTemplate>

            </ListView.ItemTemplate>

        </ListView>

    </VerticalStackLayout>
</ContentPage>
