<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="Gready_Poang.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:vm ="clr-namespace:Gready_Poang.ViewModelLayer;assembly=Gready_Poang.ViewModelLayer"
    xmlns:views="clr-namespace:Gready_Poang.Views"
    xmlns:local="clr-namespace:Gready_Poang"
    Title="Gready_Poang"
    Shell.TitleColor="LightYellow"
    x:DataType="vm:AppShellViewModel"
    Shell.BackgroundColor="CadetBlue">

    <TabBar>
        <ShellContent
            Title="Home" ContentTemplate="{DataTemplate local:MainPage}"
            Route="MainPage" />
        <ShellContent
            Title="Deltagare" ContentTemplate="{DataTemplate views:ParticipantListView}"
            Route="ParticipantListPage"/>
        <ShellContent
            Title="Ny Runda" ContentTemplate="{DataTemplate views:RoundStartingView}"
            Route="RoundStartingPage"/>
        <ShellContent
            Title="Påbörja eller fortsätt Runda" ContentTemplate="{DataTemplate views:RoundRunningView}"
            Route="RoundRunningPage" IsVisible="{Binding  RoundRunningVisible}"/>
    </TabBar>

</Shell>
