<?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="GMCabsDriverAssistantSolution.Views.CancelledBookingPage"
             Title="{Binding Title}">
    <ContentPage.Content>
        <StackLayout BackgroundColor="#DCDCDC">
            <Label
                    Text="Booking Cancelled"
                    TextColor="Black"
                    FontSize="26"
                    Margin="0,90,0,0"
                    HorizontalTextAlignment="Center"
                    HorizontalOptions="CenterAndExpand" />
            <Label 
                    Text="{Binding PickUpAddress, StringFormat='{0} to'}"
                    TextColor="Black"
                    FontSize="26"
                    Margin="0,20,0,0"
                    FontAttributes="Bold"
                    HorizontalTextAlignment="Center"
                    HorizontalOptions="CenterAndExpand" />
            <Label 
                    Text="{Binding DropUpAddress}"
                    TextColor="Black"
                    FontSize="26"
                    FontAttributes="Bold"
                    HorizontalTextAlignment="Center"
                    HorizontalOptions="CenterAndExpand"/>
            <Label 
                    Text="This booking has been cancelled."
                    TextColor="Black"
                    Padding="20"
                    FontSize="24"
                    HorizontalTextAlignment="Center"
                    HorizontalOptions="CenterAndExpand"/>
            <Label 
                    Text="Please do not drive to the pickup location"
                    TextColor="Black"
                    FontSize="24"
                    Padding="20"
                    HorizontalTextAlignment="Center"
                    HorizontalOptions="CenterAndExpand" />
            <Button
                    Margin="40,20,40,30"
                    Text="OK"
                    Clicked="OnCancelledOkClicked"
                    FontSize="20"
                    VerticalOptions="EndAndExpand"/>
        </StackLayout>

    </ContentPage.Content>
</ContentPage>