<?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="ex_ShellRoutes.NewPage2"
             Title="NewPage2">
    <VerticalStackLayout Spacing="10">
        <Label 
            Text="Welcome to .NET MAUI!"
            VerticalOptions="Center" 
            HorizontalOptions="Center" />
        <Button
            Text="GoToNewPage1" 
            Clicked="GoToNewPage1"
            HorizontalOptions="Fill" />

        <Button
            Text="GoToAbsoluteNewPage1" 
            Clicked="GoToAbsoluteNewPage1"
            HorizontalOptions="Fill" />

        <Button
            Text="PushNewPage2" 
            Clicked="PushNewPage2"
            HorizontalOptions="Fill" />
        
        <Button
                Text="GoToNewPage3" 
                Clicked="GoToNewPage3"
                HorizontalOptions="Fill" />
                
        <Label Text="{Binding CurrentItem}"/>
        <Label Text="{Binding CurrentPage}"/>
        <Label Text="{Binding CurrentState}"/>
    </VerticalStackLayout>
</ContentPage>